1. Arch branch for EUPHORIA beta
- Posted by SPringle Jun 04, 2010
- 1687 views
Who wants to run your software from a huge thing that must sit on your desk or be carried in your handbag? Sure, some computers are smaller than a regularly sized notebook but some of us would like to eventually see EUPHORIA run on a phone or a wrist watch. On the flip side, even as late as last year some big computers are using big-endian processors. It's not dead after all...
ENTER the 'arch' option for the translator and some defines that will be defined according to what processor you are running on. On current machines the defines will be INTEL32 and LITTLE_ENDIAN. On a big endian machine BIG_ENDIAN will be defined and LITTLE_ENDIAN will not be defined.
The idea is that we should make the translator ready to be able to create the C source for any new supported architecture using an option from any machine that supports translation to C.
The EUPHORIA interpreter or translator should set defines, they are symbols used with ifdef-syntax, for EUPHORIA programs to have different behavior that is determined by various processor characteristics. Such as, Byte-sex, Intel 386 compatibility, and word size.
We should always make sure the trunk versions can translate the branch's source. Therefore, while this is a branch we put the following at the top of source files and includes, but not in unit-tests or demos:
with define LITTLE_ENDIAN with define INTEL32
The branch will go into / https://rapideuphoria.svn.sourceforge.net/svnroot/rapideuphoria/branches/arch
If you are someone who is porting EUPHORIA to another processor or wants to. This will be of some interest to you.
Shawn Pringle