flat assembler
Message board for the users of flat assembler.

Index > Main > Multi-platform FASM ?

Author
Thread Post new topic Reply to topic
james



Joined: 07 Sep 2005
Posts: 45
Location: Australia
james
How do people handle assembling for Windows and Linux ?

Do you use make or some other tools to enable single source
assembling to both Win32 and Linux ?

I dont see any conditional assembling directives in the FASM assembler.

rgs James.
Post 09 Sep 2005, 23:19
View user's profile Send private message MSN Messenger Reply with quote
Eoin



Joined: 16 Jun 2003
Posts: 68
Location: Ireland
Eoin
Well it does have them and more Very Happy .
Post 09 Sep 2005, 23:36
View user's profile Send private message Reply with quote
coconut



Joined: 02 Apr 2004
Posts: 326
Location: usa
coconut
if you mean using same source file for both platforms, i dont see how that would be possible, considering each OS has its own APIs and executable file formats.
Post 10 Sep 2005, 02:47
View user's profile Send private message Reply with quote
james



Joined: 07 Sep 2005
Posts: 45
Location: Australia
james
Thanks for the replies.

Im glad to know there is a conditional assemly.

Is there a way to define a label from the command line so you can
take action inside of the source ?

eg:

if win32>0
include "win32.inc"
end if
Post 10 Sep 2005, 02:54
View user's profile Send private message MSN Messenger Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
you shouldn't use "if", it is assembly time, and "include" is preprocess time, use "match"
Post 10 Sep 2005, 08:58
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
james



Joined: 07 Sep 2005
Posts: 45
Location: Australia
james
Vid,

Thanks for the reply.
Do you have an example ?

Rgs, James.
Post 10 Sep 2005, 22:28
View user's profile Send private message MSN Messenger Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
seems you already found it yourself.... Wink
FASM's source is great example of multiplatform assembly project, just the way it should be done.
Post 11 Sep 2005, 09:10
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
james



Joined: 07 Sep 2005
Posts: 45
Location: Australia
james
thanks all. I think I know what I have to do to get the functionality I need.
Post 11 Sep 2005, 20:47
View user's profile Send private message MSN Messenger 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.