flat assembler
Message board for the users of flat assembler.

Index > Linux > multiple file project

Author
Thread Post new topic Reply to topic
realcr



Joined: 02 Apr 2007
Posts: 39
realcr
I was wondering how can I use fasm to assemble many files into one executable. [I'm talking right now inside linux forum , but I would also like to know it for windows if it is possible].

I remember in gcc that one could do gcc file1.c file2.c -o final_file
Is it actually possible with fasm? As I find it pretty hard to write everything in just one file.

thanks,
bar.
Post 08 Jun 2007, 17:07
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number Reply with quote
bogdanontanu



Joined: 07 Jan 2004
Posts: 403
Location: Sol. Earth. Europe. Romania. Bucuresti
bogdanontanu
You do not have to write everything in one single file.

1)You can write in multiple files and then include each file in your main file.

2)You can compile each file to an OBJ file and then use a linker to generate the output binary file (C style)
Post 08 Jun 2007, 18:06
View user's profile Send private message Visit poster's website Reply with quote
realcr



Joined: 02 Apr 2007
Posts: 39
realcr
Thanks bogdan. Obviously I was programming too much high level lately , as I didn't think about including asm files [instead of h files...].

bar.
Post 08 Jun 2007, 19:42
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number 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 GitHub, YouTube, Twitter.

Website powered by rwasa.