flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > A minor bug in "public" directive (COFF).

Author
Thread Post new topic Reply to topic
JohnFound



Joined: 16 Jun 2003
Posts: 3500
Location: Bulgaria
JohnFound
Hi, Privalov.

Today I helped an FASM user from Russia on the ICQ to compile his sources to MS COFF format for linking with VC. (I never made this before because I don't use FASM with HLL's. )
So the problem I found:
The new stdcall.inc library will not include the procedure in the compiled binary file if it is not used in the source. ( if used procname... etc.) But "public" directive does not mark the label as "used" so if the procedure is used only in "public" directive it remains not compiled and FASM gives error message "Undefined symbol" in the line with "public" definition.

I mentioned this guy to make dummy call to this procedure to ensure it will be defined:
Code:
virtual 
  call TheMissingProc
end virtual
    


But IMHO, "public" should mark the label as "used".

Regards.
Post 21 Apr 2004, 19:45
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 7572
Location: Kraków, Poland
Tomasz Grysztar
Good point. Updated the 1.52 release.
Post 21 Apr 2004, 21:03
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.