Frank Heckenbach wrote:
a) You must link the Pascal object file:
gcc footest.c foo.o -o footest
I did so, getting another error message. (See parallel mail)
b) You must init the RTS etc. (if the Pascal code uses any of it which most Pascal code does), see the demo programs gpc_c_pas.pas and gpc_c_unit.pas.
Does this example mean, I have to write a pascal _program_ file just to ignore its "main"?! Isn't there a more explicit way to init the RTS?
c) You should specify the asmname of the Pascal routine:
procedure bar; asmname 'Bar';
(Currently, this is the default used by GPC, but this will change soon as a preparationn for qualified identifiers, and you probably don't want your code to break then.)
Certainly not... Did you already plot the new default rule GPC will use after the change? -- In fact, this means I'll _have_ to give every variable, routine etc. an asmname in order to keep my code gcc-compatible, right?