flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > Empty sections

Author
Thread Post new topic Reply to topic
daluca



Joined: 05 Nov 2005
Posts: 86
daluca
Code:

format ms coff

    


1 passes, 82 bytes.

Code:

format ms coff
section 'data' data readable writeable

    


1 passes, 82 bytes.

Code:

format ms coff
section 'data' data readable writeable
section 'data' data readable writeable

    


1 passes, 140 bytes

Code:

format ms coff
section 'data' data readable writeable
section 'data' data readable writeable
section 'data' data readable writeable
section 'data' data readable writeable
section 'data' data readable writeable
section 'data' data readable writeable

    


1 passes, 372 bytes.


is there any way to make fasm not to generate sections that are empty?
thanks.
Post 30 Dec 2007, 18:30
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4240
Location: 2018
edfed
don't code empty sections...
Post 30 Dec 2007, 18:39
View user's profile Send private message Visit poster's website Reply with quote
daluca



Joined: 05 Nov 2005
Posts: 86
daluca
is there any way to make fasm ignore sections that are empty?
thanks.
Post 30 Dec 2007, 18:45
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
Quote:
is there any way to make fasm ignore sections that are empty?
thanks.

I think it would be very easy to add, but there is no reason to add it.

So, your answer is no.
Post 30 Dec 2007, 19:14
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7734
Location: Kraków, Poland
Tomasz Grysztar
fasm usually takes everything very literally - it assumes that since you wrote it, you meant it (to generate empty section).

However it may be possible to write "section" macro that would do this for you.
Post 30 Dec 2007, 19:34
View user's profile Send private message Visit poster's website Reply with quote
daluca



Joined: 05 Nov 2005
Posts: 86
daluca
thanks: i will try with macros then.
Post 31 Dec 2007, 01:29
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. Also on YouTube, Twitter.

Website powered by rwasa.