flat assembler
Message board for the users of flat assembler.

Index > Main > execution from source

Author
Thread Post new topic Reply to topic
shoorick



Joined: 25 Feb 2005
Posts: 1614
Location: Ukraine
shoorick 16 Apr 2006, 08:48
Hi!
I would suggest to add into fasm such embedded commands:

shell_exec_before "command" - executes command via shell before assembling
shell_exec_after "command" - executes command after assembling
shell_exec_result - numeric variable to get last result of execution (?)

this will let to keep multystage operation in one asm source, for
example, compile rc or scan import before assembling and link or
pack exe after assembling without batch files. maybe, keeping result
will help also, but then i do not know how to process it proper due to
stage of assembling, eg. abort on shell_exec_result ~eq 0 (?)

regards!

_________________
UNICODE forever!
Post 16 Apr 2006, 08:48
View user's profile Send private message Visit poster's website Reply with quote
shoorick



Joined: 25 Feb 2005
Posts: 1614
Location: Ukraine
shoorick 17 Apr 2006, 08:35
shell_exec... "command" - abort on non-zero return
and
shell_exec.. "command" ignore - to ignore non-zero return

_________________
UNICODE forever!
Post 17 Apr 2006, 08:35
View user's profile Send private message Visit poster's website Reply with quote
llaurrentt



Joined: 02 Nov 2006
Posts: 13
Location: Liège / Belgium
llaurrentt 11 Nov 2006, 14:30
It's much more clever to use the make utility! which can handle every of your issues and many more.
Post 11 Nov 2006, 14:30
View user's profile Send private message MSN Messenger Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20363
Location: In your JS exploiting you and your system
revolution 11 Nov 2006, 15:32
The commands would be OS dependent and thus not work in lots of cases. What is wrong with a simple batch file anyway?
Post 11 Nov 2006, 15:32
View user's profile Send private message Visit poster's website Reply with quote
Filter



Joined: 08 Oct 2006
Posts: 67
Filter 11 Nov 2006, 22:35
revolution wrote:
The commands would be OS dependent and thus not work in lots of cases. What is wrong with a simple batch file anyway?


Not necessarily. You could be using GCC or some other multi platform software that is available on the command line for programmers who use the software.

If someone wants to make the commands themselves platform dependent then that would be their option but it doesn't always mean that it is going to be the case.

I agree though that using make is more sensible for such things though.
Post 11 Nov 2006, 22:35
View user's profile Send private message Reply with quote
shoorick



Joined: 25 Feb 2005
Posts: 1614
Location: Ukraine
shoorick 13 Nov 2006, 06:35
make and batch ways are known to me Wink. but how do you plan start them, say, from fasmw? the idea is to support simple sequence directly from source, say, to build windows application, when you may need rc compilation/conversion before assembling, and possible linking after assembling. agree, it's not too important (personally i do not need it at all from IDE), but i thought it is easy to implement and handy to users who use fasmw only.
Post 13 Nov 2006, 06:35
View user's profile Send private message Visit poster's website Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3175
Location: Denmark
f0dder 13 Nov 2006, 14:44
Sounds like a bad idea to me... such commands don't really belong in an assembler (or a compiler, for that matter).

shoorick wrote:

but how do you plan start them, say, from fasmw?

Simple: use a better editor, or a fully-fledged IDE. Smile
Post 13 Nov 2006, 14:44
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.