Hi William,

> I see you continue to make good progress!
This part went smooth, only one WORD bugged me for some time. And with
this version, we should be able to blink a LED on Atmega or ARM!

> Later on, we might consider using stdint.h, but for now I am quite
> happy with the familiar int, short int, etc.
>
> http://en.wikipedia.org/wiki/Stdint.h
Thanks, I saw this often before but did not know it is a standard.

We could use it, but need a lot more. Most of the remaining work is
related to variable handling:

- If a procedure parameter is declared 'in', it is called by value,
unless it is larger then supported by the target compiler
- if a procedure parameter is declared 'in out', it is called by reference.
- if a procedure parameter is declared 'out', it is handled 'in out'
- we need handling of different-sized variables, like 24-bit and
40-bit. 24-bit could be handled by standard variables by masking the
extra bits off, but the longer one needs special vars.
- we need handling of promotion within expressions.

Where it boils down to is that the 8, 16 and 32 bits vars are easy to
handle, odd-sized vars up to 32 bit are a bit more difficult and
longer do probably require a library for each operation. And the
combination can be pretty complex. Would it be helpful to use C++?

Anyway, for now I restrict the support to the variable types shown and
will work on the procedure parameters, scanning prototypes and actual
procedure definitions. With this and a bit of work on other
statements, we'll have a limited code generator that is actually
useful.

Joep

-- 
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