[mercury-users] foreign_decl vs. foreign_code

Michael Day mikeday at bigpond.net.au
Tue Feb 12 14:36:36 AEDT 2002


Hi,

I have a module which declares a global variable used by foreign_procs 
later on. When compiling the module in asm_fast.gc grade, it doesn't 
declare the variable early enough unless it is placed in a foreign_decl. 
When compiling in hlc.gc grade this leads to duplicate declarations unless 
the variable is placed in foreign_code.

It seems that foreign_code is the correct place, so does this count as a 
bug for the asm_fast.gc case?

(I am using mercury-rotd-2002-02-07 and compiling with transitive 
intermodule optimisation enabled).

Michael

--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list