flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > Little but useful addition to FASM

Author
Thread Post new topic Reply to topic
Clark Nova



Joined: 25 Sep 2005
Posts: 1
Clark Nova 25 Sep 2005, 13:42
to be able to get the asm source file name and line number from source

if we have these information, say in some kind of str, then the error handling can be improved, because if the compiled program got an error or exception
then we can print out the source file name and the line number

for me it was wonderful, i don't know the others Smile
Post 25 Sep 2005, 13:42
View user's profile Send private message Reply with quote
james



Joined: 07 Sep 2005
Posts: 45
Location: Australia
james 26 Sep 2005, 02:49
Im sure this is available. Please ready the doco.
Post 26 Sep 2005, 02:49
View user's profile Send private message MSN Messenger Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8359
Location: Kraków, Poland
Tomasz Grysztar 27 Sep 2005, 20:53
Something like this was once discussed here: http://board.flatassembler.net/topic.php?t=1154
Post 27 Sep 2005, 20:53
View user's profile Send private message Visit poster's website Reply with quote
mrpink



Joined: 03 Jun 2005
Posts: 27
Location: Germany
mrpink 06 Oct 2005, 08:06
Will there ever be a feature to merge equally named sections into one such
that it is possible to declare multiple code or data sections having the same name and
flags?
Post 06 Oct 2005, 08:06
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8359
Location: Kraków, Poland
Tomasz Grysztar 06 Oct 2005, 08:14
I've been answering it dozens of times (perhaps it's time to add it to FAQ): this is the linker's job, not assembler's. To do any section merging and things like that you have to use object output, and then some linker. The special fasm's formatters that create executables directly are provided to allow making executables without linker, but not to replace linker - with them there's the rule, that everything in output file reflects exactly the order of declarations source file, thus giving you the power to arrange the executable exactly as you need (at low level).
Post 06 Oct 2005, 08:14
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 06 Oct 2005, 09:46
really, add it to FAQ
Post 06 Oct 2005, 09:46
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
mrpink



Joined: 03 Jun 2005
Posts: 27
Location: Germany
mrpink 08 Oct 2005, 11:22
Thank you for answering the question again. Next time I will first search the forum before
asking a possibly already answered question.
Post 08 Oct 2005, 11:22
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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.