English Amiga Board


Go Back   English Amiga Board > Coders > Coders. System > Coders. Scripting

 
 
Thread Tools
Old 17 October 2023, 22:32   #1
danboid
Registered User
 
Join Date: Sep 2023
Location: England
Posts: 28
68k python build

I've got a small python app I'd like to try running on my (unaccelerated) A600 with 5 MB RAM & KS/WB 3.1 but all of the python builds I've found online require at least a 020.


Has anyone got a 2.3 or later build of python that I can run on my A600?


If I have to build it myself, I presume I could do it under (FS)UAE using a 040 (or 060?)with a decent amount of RAM to build it (faster than on my A600) but is there a faster or easier way I coud build python for the amiga via cross compilation under Linux?

Yes, I realise how slow python will be on an A600. No, I do not care in the slightest. Its hardly getting used in production.



Does AmigaPython have working serial support?



Thanks
danboid is offline  
Old 17 October 2023, 22:52   #2
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,197
Bebbo's Windows/Linux cross 68k gcc toolchain is excellent but generates code for 68020+ (startup). It's not about the instructions, but rather odd-aligned word reads, which can't be emulated easily without patching the exe.

This looks like a difficult task, as without gcc I'm afraid that this is a lost cause. It may be better to disassemble, fix the 68000 incompatibilties and reassemble.
jotd is offline  
Old 18 October 2023, 01:48   #3
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,500
Quote:
Originally Posted by jotd View Post
This looks like a difficult task, as without gcc I'm afraid that this is a lost cause.
Why?
Here is the source of AmigaPython 2.3.3 for SAS/C. Shouldn't be too difficult to compile for 68000:
http://www.monkeyhouse.eclipse.co.uk/amiga/python/
phx is offline  
Old 18 October 2023, 04:01   #4
Bruce Abbott
Registered User
 
Bruce Abbott's Avatar
 
Join Date: Mar 2018
Location: Hastings, New Zealand
Posts: 2,584
Quote:
Originally Posted by danboid View Post
Does AmigaPython have working serial support?
No. This is expected because the standard Python package doesn't include serial support.

Since your Python app is 'small' you may want to consider translating it to a more appropriate language for the Amiga. Might be easier than trying to compile a 68000 compatible version and porting pySerial to it.
Bruce Abbott is offline  
Old 18 October 2023, 08:07   #5
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,197
Quote:
Originally Posted by phx View Post
Why?
Here is the source of AmigaPython 2.3.3 for SAS/C. Shouldn't be too difficult to compile for 68000:
http://www.monkeyhouse.eclipse.co.uk/amiga/python/

Ok probably if it's already SAS/C compatible. Then why did they compile for 68020 for very marginal benefits?

I also agree that using python on amiga in 2023 makes little sense. I used it very briefly instead of shell to perform emulator-specific stuff but most of the time it's much better to script on the host and change files that the amiga will use later.

Developing on the real machine today is really not efficient compared to what we can do on windows/linux + winuae.
jotd is offline  
Old 18 October 2023, 17:58   #6
nogginthenog
Amigan
 
Join Date: Feb 2012
Location: London
Posts: 1,311
A while ago I looked at MicroPython which is aimed at microcontrollers so might be more suitable for a 68k Amiga.

It compiles and I was able to run a hello world (using the 'minimal' build).
Probably needs quite a bit of work.

Unfortunately I know almost nothing about Python.
nogginthenog is offline  
Old 19 October 2023, 03:08   #7
danboid
Registered User
 
Join Date: Sep 2023
Location: England
Posts: 28
Looks like I'll have to build it myself then. I'll be sure to report back when I get round to it.
danboid is offline  
Old 19 October 2023, 12:50   #8
Locutus
Registered User
 
Join Date: Jul 2014
Location: Finland
Posts: 1,178
I also did a small MicroPython port some years ago, but once i realized the effort (and maintenance) needed in getting a useful Amiga standard library for it i abandoned the work.
Locutus is offline  
Old 19 October 2023, 20:57   #9
redblade
Zone Friend
 
redblade's Avatar
 
Join Date: Mar 2004
Location: Middle Earth
Age: 40
Posts: 2,127
Quote:
Originally Posted by danboid View Post
I've got a small python app I'd like to try running on my (unaccelerated) A600 with 5 MB RAM & KS/WB 3.1 but all of the python builds I've found online require at least a 020.

Does AmigaPython have working serial support?

Thanks
Define small? Under 40k?

How much data is getting sent over the serial? What speed does it need?
redblade is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Python v2.4 JJ__ Coders. Language 8 04 July 2021 12:37
Python V1.4 JJ__ Coders. Language 5 01 July 2021 20:34
Python 1 joystick ladybird Retrogaming General Discussion 3 08 August 2007 15:06
Python Joysticks ? blade002 MarketPlace 11 18 June 2006 04:48
Monty Python Bueller request.Demos 2 12 October 2005 16:39

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 10:45.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.10508 seconds with 13 queries