[Lazarus] Free Pascal / Lazarus calling conventions

Chavoux Luyt chavoux at gmail.com
Mon Feb 29 16:04:20 CET 2016


Hi guys,

Just a stupid question, but is the Lazarus calling conventions documented
anywhere? Is it different from Delphi calling conventions? When calling
external c functions from libraries, does one need any special declarations
like in Delphi to tell it to use c-style calling conventions?

Related (it was actually Bo's question that got me thinking about this...
how easy/difficult would it be to write Linux drivers in Object Pascal, but
in a way that C/C++ programs can also use it? Or for that matter (since
Lazarus has been ported to Haiku) it might be easier to write drivers for
Haiku in Pascal rather than C? Maybe speed things up a bit?

Cheers,
Chavoux
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160229/81d2a8b9/attachment-0002.html>


More information about the Lazarus mailing list