flat assembler
Message board for the users of flat assembler.

Index > Linux > Suggestion: make {listing,prepsrc,symbols} print to stdout

Author
Thread Post new topic Reply to topic
buzzkill



Joined: 15 Mar 2009
Posts: 111
Location: the nether lands
buzzkill 01 Apr 2009, 17:38
Hello Tomasz,

I noticed that your tools (listing,prepsrc,symbols) must be given two arguments: one for input file, and one for output file. I would suggest you make the output file argument optional, and if it's not given, to use stdout. This is more in line with standard *nix behavior (and also the behavior I prefer Smile ), because that way you can pipe the output to other programs directly or in scripts. (This can of course also be done through creating a temporary file etc, but this is more work).
Maybe this is something you could only do for the linux/libc fasm, if you don't think this is appropriate for the windows/dos versions.
Post 01 Apr 2009, 17:38
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8353
Location: Kraków, Poland
Tomasz Grysztar 01 Apr 2009, 18:04
This is a very good suggestion, and also very easy to implement. I'll add this feature in the next update.
Post 01 Apr 2009, 18:04
View user's profile Send private message Visit poster's website Reply with quote
buzzkill



Joined: 15 Mar 2009
Posts: 111
Location: the nether lands
buzzkill 01 Apr 2009, 18:10
Thank you for the quick response, Tomasz, and for implementing my suggestion Smile
Post 01 Apr 2009, 18:10
View user's profile Send private message Reply with quote
SFeLi



Joined: 03 Nov 2004
Posts: 138
SFeLi 02 Apr 2009, 04:47
And what about display-ed data? Would it go to stderr in such case?
Post 02 Apr 2009, 04:47
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8353
Location: Kraków, Poland
Tomasz Grysztar 02 Apr 2009, 07:38
These tools don't display any data (and if they do, it's the error message, which goes to stderr).
Post 02 Apr 2009, 07:38
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.