flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > Adding ´Library´ directive?

Author
Thread Post new topic Reply to topic
Mac2004



Joined: 15 Dec 2003
Posts: 313
Mac2004
My idea is that Fasm could support a sort of "library" directive. This directive would check whether your main code (ie. your new application) actually uses included procedure code.

For example one could have placed correct procedures for converting 8 bit, 16 bit and 32 bit values into asciiz-string in an external include file. Library -directive would check whether the main code actually uses for instance 16 bit number conversion code. Only those procedures actually used would be included in main source code and the rest would be left unincluded.

The idea is that when one is coding bigger project in assembler you would not need to worry whether you have included correct procedure. The assembler would do this for you and most importly your main code would not include unneeded code.

The main difference to include-directive is that include-directive unconditionally includes all procedures located at external file. This wastes memory when big portions of unused code is compiled together with really used code sections.

Any ideas??

regards,
Mac2004
Smile
Post 14 Jan 2004, 12:47
View user's profile Send private message Reply with quote
decard



Joined: 11 Sep 2003
Posts: 1095
Location: Poland
decard
Your problem can be solved with macros and "if used" directive. For example see Fresh source...
Post 14 Jan 2004, 13:02
View user's profile Send private message Visit poster's website Reply with quote
Mac2004



Joined: 15 Dec 2003
Posts: 313
Mac2004
I will have a look at the Fresh code.

regards,
Mac2004
Post 15 Jan 2004, 13:26
View user's profile Send private message 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.