[fpc-devel] Freepascal in microcontrollers

Vinzent Hoefler JeLlyFish.software at gmx.net
Wed Feb 27 16:03:24 CET 2008


On Wednesday 27 February 2008 15:56, Michael Schnell wrote:
> In the Linux source code preprocessor macros are used if data
> structures are accessed that require a certain endianess (usually
> "net"- data that are defined high byte first by TCP/IP).
>
> Here clever tweaking provides that no additional code is created if
> the byte order already is correct with the processor the code is
> compiled for.

As pointed out, this is possible without a preprocessor. Not in C, 
though.


Vinzent.



More information about the fpc-devel mailing list