473,625 Members | 3,357 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

z80 vs Python

Hello!

I have an idea that implements the Python interpreter for z80 as an
universal flexible language (like scripts) to support attached hardware.
What would it be shortest way to do it?
I think of course about C (Zilog has good support of own products...).
I'm waiting for the opinion.

The best regards
Janusz U.
Jul 18 '05 #1
11 3456
> I have an idea that implements the Python interpreter for z80 as an
universal flexible language (like scripts) to support attached hardware.
What would it be shortest way to do it?
I think of course about C (Zilog has good support of own products...).


I wouldn't recommend this. The standard Python interpreter is quite hefty
(>700K dynamically linked), not to mention the standard libraries. Seeing
as Z80 has only 64K address space, I don't see a full implementation as
possible.

What you /could/ do would be to implement a (very) small subset of Python;
i.e. leave out generators, new-style class, list comprehensions, ability
to override built-in types, functions, and operators, and most of the
standard library, then you /might/ be able to fit a language with Pythonic
syntax in that address space.

Another issue would be speed. Z80s, though they've gotten faster over the
years, still only run at speeds on the order of 10MHz. You might be better
off writing a Z80 compiler for a Python-esque language -- this would save
both speed and memory.

If you can pick a different chip, go with something like a StrongARM.
These have the power and address space necessary for Python. Plus, it's
been done before (Python runs beautifully on modern PDAs).

If you stick with the Z80 though, you've got quite a challenge ahead of
you - good luck! If you succeed, you'll be sure to make hackers of Game
Boys, TI-83s, and TRS-80s everywhere deliriously happy.

Jul 18 '05 #2
> I wouldn't recommend this. The standard Python interpreter is quite hefty
(>700K dynamically linked), not to mention the standard libraries. Seeing
as Z80 has only 64K address space, I don't see a full implementation as
possible.
I know. Sorry, I didn't precise. I thought exactly about eZ80F91 - it's
based on Z80 but much more expanded... I will start on the module (and
deviloper kit) for that procesor. It would be independent platform for
tests software in the Python.
What you /could/ do would be to implement a (very) small subset of Python;
i.e. leave out generators, new-style class, list comprehensions, ability
to override built-in types, functions, and operators, and most of the
standard library, then you /might/ be able to fit a language with Pythonic
syntax in that address space.
I think to expand language by own library for Python - eg. control GPIO of
eZ80, read

Another issue would be speed. Z80s, though they've gotten faster over the
years, still only run at speeds on the order of 10MHz. You might be better
off writing a Z80 compiler for a Python-esque language -- this would save
both speed and memory.
speed 50MHz (or 20MHz in F92, F93...)

If you can pick a different chip, go with something like a StrongARM.
These have the power and address space necessary for Python. Plus, it's
been done before (Python runs beautifully on modern PDAs).
I have just bought the developer kit for eZ80 so I have limited way. I'd be
happy to run Python on eZ80 platform.

thx
Janusz U.
If you stick with the Z80 though, you've got quite a challenge ahead of
you - good luck! If you succeed, you'll be sure to make hackers of Game
Boys, TI-83s, and TRS-80s everywhere deliriously happy.

Jul 18 '05 #3
Personally, if I had the time, I'd try porting python to a gumstix
board:

http://www.gumstix.com/

It probably wouldn't be too hard, but still, it'd be fun to get it
onto that tiny board. :)


"Janusz U." <no*****@poczta .onet.pl> wrote in message news:<cb******* ***@atlantis.ne ws.tpi.pl>...
I wouldn't recommend this. The standard Python interpreter is quite hefty
(>700K dynamically linked), not to mention the standard libraries. Seeing
as Z80 has only 64K address space, I don't see a full implementation as
possible.


I know. Sorry, I didn't precise. I thought exactly about eZ80F91 - it's
based on Z80 but much more expanded... I will start on the module (and
deviloper kit) for that procesor. It would be independent platform for
tests software in the Python.
What you /could/ do would be to implement a (very) small subset of Python;
i.e. leave out generators, new-style class, list comprehensions, ability
to override built-in types, functions, and operators, and most of the
standard library, then you /might/ be able to fit a language with Pythonic
syntax in that address space.


I think to expand language by own library for Python - eg. control GPIO of
eZ80, read

Another issue would be speed. Z80s, though they've gotten faster over the
years, still only run at speeds on the order of 10MHz. You might be better
off writing a Z80 compiler for a Python-esque language -- this would save
both speed and memory.


speed 50MHz (or 20MHz in F92, F93...)

If you can pick a different chip, go with something like a StrongARM.
These have the power and address space necessary for Python. Plus, it's
been done before (Python runs beautifully on modern PDAs).


I have just bought the developer kit for eZ80 so I have limited way. I'd be
happy to run Python on eZ80 platform.

thx
Janusz U.
If you stick with the Z80 though, you've got quite a challenge ahead of
you - good luck! If you succeed, you'll be sure to make hackers of Game
Boys, TI-83s, and TRS-80s everywhere deliriously happy.

Jul 18 '05 #4
On 24 Jun 2004 16:36:09 -0700, Corey Coughlin <co************ @attbi.com>
wrote:
Personally, if I had the time, I'd try porting python to a gumstix
board:

http://www.gumstix.com/

It probably wouldn't be too hard, but still, it'd be fun to get it
onto that tiny board. :)


That board is incredible !

Is the "special" 286 processor on it 32-bit or 16-bit like the old 286
was ?
I guess you can't run Linux on a 16 bit so it must be 32...

And the price is so small !
Jul 18 '05 #5
Actually, the 286 is essentially a 32 bit processor. It has most of the
features of the 386, only many of the control structures such as the GDT
are different, as well as the memory bus.

On Fri, Jun 25, 2004 at 08:43:44AM +0200, Pierre-Fr?d?ric Caillaud wrote:
On 24 Jun 2004 16:36:09 -0700, Corey Coughlin <co************ @attbi.com>
wrote:
Personally, if I had the time, I'd try porting python to a gumstix
board:

http://www.gumstix.com/

It probably wouldn't be too hard, but still, it'd be fun to get it
onto that tiny board. :)


That board is incredible !

Is the "special" 286 processor on it 32-bit or 16-bit like the old
286 was ?
I guess you can't run Linux on a 16 bit so it must be 32...

And the price is so small !


Jul 18 '05 #6
Pierre-Frédéric Caillaud <pe****@free.fr > wrote in message news:<opr940y6l s1v4ijd@musicbo x>...
On 24 Jun 2004 16:36:09 -0700, Corey Coughlin <co************ @attbi.com>
wrote:
http://www.gumstix.com/

[...]
Is the "special" 286 processor on it 32-bit or 16-bit like the old 286 was ?


On the gumstix board? It's an XScale processor, meaning that it has a
32-bit ARM architecture, although I don't follow the exact twists and
turns of the different ARM architectures these days, so I may be
simplifying there somewhat.

Paul
Jul 18 '05 #7

Uzytkownik "Phil Frost" <in****@bitglue .com> napisal w wiadomosci
news:ma******** *************** *************** @python.org...
Actually, the 286 is essentially a 32 bit processor. It has most of the
features of the 386, only many of the control structures such as the GDT
are different, as well as the memory bus.


but '86 is not compatible with Z80 (only little in hardware part - buses)

The best RGS
Janusz
Jul 18 '05 #8
On 2004-06-25, Pierre-Frédéric Caillaud <pe****@free.fr > wrote:
http://www.gumstix.com/

It probably wouldn't be too hard, but still, it'd be fun to get it
onto that tiny board. :)


That board is incredible !

Is the "special" 286 processor on it 32-bit or 16-bit like the old
286 was ? I guess you can't run Linux on a 16 bit so it must be 32...


There is a "16-bit" version of Linux called ELKS that runs on 8086 class CPUs.

--
Grant Edwards grante Yow! Yow! I just went
at below the poverty line!
visi.com
Jul 18 '05 #9
Oh, it's not a 286 processor, it's a Intel XScale® PXA255, which is a
full 32 bit ARM architecture. Basically, it's the same processor you
find in a lot of PocketPC PDAs. So it's not x86 compatible, but there
are plenty of linux versions (full 32 bit) around for it. Although
the memory constraints require you to scale things down a little. It
looks like they're taking the processor and adding the minimum support
chips to keep the board small.

It's kind of a shame in some ways, what I'd really like to see is
something using the new multicore ARM, so that you could go for a
massive multiprocessor architecture with the lowest possible power.
And a higher speed interface, like PCI, so you could gang them
together to a normal pc, kind of like the clearspeed processor
(www.clearspeed.com). Then you could really start looking at massive
computing power on the desktop at low power. Not that I really need
it or anything, but still, could be fun.
Pierre-Frédéric Caillaud <pe****@free.fr > wrote in message news:<opr940y6l s1v4ijd@musicbo x>...
On 24 Jun 2004 16:36:09 -0700, Corey Coughlin <co************ @attbi.com>
wrote:
Personally, if I had the time, I'd try porting python to a gumstix
board:

http://www.gumstix.com/

It probably wouldn't be too hard, but still, it'd be fun to get it
onto that tiny board. :)


That board is incredible !

Is the "special" 286 processor on it 32-bit or 16-bit like the old 286
was ?
I guess you can't run Linux on a 16 bit so it must be 32...

And the price is so small !

Jul 18 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
8356
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8497
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7184
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6118
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4089
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4193
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2621
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1500
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.