[lazarus] OS and Architecture detection...

Tom Lisjac netdxr at adelphia.net
Wed Jun 25 16:23:36 EDT 2003



Today's project is to try and clean up the code I've written so it will
work across the operating systems and architectures that FPC and Lazarus
support. I've noticed conditionals for "i386", "BSD", "Solaris" etc, but
I can't find the place where they're set. Getting a dump of them all and
seeing when they're applied would be very useful.

I'm also interested in runtime capability detection. I have some
routines for the IA-32 (processor type, SN, stepping, id, time stamp
counter, clock speed etc) but nothing for any other architecture.

If there isn't a "Developer's guide for cross platform coding", I'll
start one if someone will point me in the right direction.

-Tom






More information about the Lazarus mailing list