Show quoted text 5 lines
I just got a Google alert for a new release of the Turbo51 compiler.
It's a TP-compatible compiler for the 8051 microcontroller family.
It's freeware, but not open source.
http://www.turbo51.comI browsed a bit there and it looks pretty cool! It seems to have full shortstring support at a first glance, and in general more of the BP dialect then most 8-bit dialects. T
The extensions are what one would expect (segment modifier and bit access. It also supports "our" %110101 syntax).
The only strange thing I found is this:
------------
* Local variables
All local variables in normal (non-reentrant) procedures and functions are static. They are placed like global variables but are accessible only in local scope. Default memory type for local variables can be set with compiler directive $ML MemoryType (DATA, IDATA or XDATA) and defaults to DATA. This memory type can be overridden for each variable declaration. ---------
(and same for params) I think it makes sense for embedded programming though, since it simplifies calling conventions. OTOH, they generally don't have that much fast RAM.
Pitty that we use (16-bit) Microchip nowadays.....