17 October 2023, 22:32 | #1 |
Registered User
Join Date: Sep 2023
Location: England
Posts: 36
|
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 |
17 October 2023, 22:52 | #2 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,417
|
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. |
18 October 2023, 01:48 | #3 | |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,570
|
Quote:
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/ |
|
18 October 2023, 04:01 | #4 |
Registered User
Join Date: Mar 2018
Location: Hastings, New Zealand
Posts: 2,849
|
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. |
18 October 2023, 08:07 | #5 | |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,417
|
Quote:
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. |
|
18 October 2023, 17:58 | #6 |
Amigan
Join Date: Feb 2012
Location: London
Posts: 1,323
|
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. |
19 October 2023, 03:08 | #7 |
Registered User
Join Date: Sep 2023
Location: England
Posts: 36
|
Looks like I'll have to build it myself then. I'll be sure to report back when I get round to it.
|
19 October 2023, 12:50 | #8 |
Registered User
Join Date: Jul 2014
Location: Finland
Posts: 1,193
|
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.
|
19 October 2023, 20:57 | #9 | |
Zone Friend
Join Date: Mar 2004
Location: Middle Earth
Age: 40
Posts: 2,130
|
Quote:
How much data is getting sent over the serial? What speed does it need? |
|
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 |
|
|