I thought the main point of Volatile was to stop the compiler
optimising it away by mistake.

Anyway...

For ARM I will use Oberon7. It's easy to manually translate JAL to
Oberon, Component Pascal, Delphi or Modula-2

Oberon7 is very small. A translator from JAL to Oberon would produce
much more like human readable code and Oberon is on Linux and ARM.

If I want to use JAL for ARM, as I said, I would agree a new extension
to JAL, JAL3 or "Handy" that would be more Modula-2 / Oberon like but
with 100% backward compatibility, i.e. := is = and  = is ==  etc.

The Oberon07 "while" is nice:
WhileStatement  =  "WHILE" expression "DO" StatementSequence
 {“ELSIF” expression "DO" StatementSequence} "END".

"case" solves issue with current JAL compiler:
Case is like if.  However, it is intended to
use a different technique of implementation, namely a single, indexed
branch instead of a
cascade of conditional branches. This is sensible only if the cases
are distinguished by a (mostly)
contiguous range of label values.
1. Labels are integers.
2. Labels form a range of values, starting with 0, like array indices.


I'd not be interested in a C translator, unless it was 100% same
functionality and you could delete the C code and never look at it,
i.e. purely a pre-processor for a decent bug free c compiler such that
you "compile" your JAL2 (or JAL3/Handy that 100% backward compatible
with JAL2) and program with JTAG the resulting HEX. I never look at
the ASM produced by JAL. I'd regard any Antlr or Gold  based project a
failure if it didn't work exactly as above).

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to