flat assembler
Message board for the users of flat assembler.

Index > Main > Multiple file programming??

Author
Thread Post new topic Reply to topic
milind



Joined: 15 Feb 2004
Posts: 33
milind
Hello,
Can I split my program in FASM into multiple files?? If yes How can I link those files after compiling them? Should I be using the Executable and Linkable Format?? Any answewrs would be appreciated.
Post 04 Mar 2004, 10:40
View user's profile Send private message Visit poster's website Yahoo Messenger Reply with quote
decard



Joined: 11 Sep 2003
Posts: 1092
Location: Poland
decard
Of course you can Smile
You can to this in two ways:
1) create multiple source files, and one main file, in which you will include all other sources;
2) you can also compile your sources into some linkable format. Which format you should choose depend on the linker you have (fasm doesn't come woth any linker). Proably you will use COFF format, AFAIK most of the free linkers use this format, or if you would like to use for example MS Link, then you will have to specify "format MS COFF". How to link them depends on your linker - usually you will run it form commandline specifing which files to link.
I suggest you to take a look at GoLink ([url]http:\\www.godevtool.com[/url]) - it is quite easy to use.

regards
Post 04 Mar 2004, 17:02
View user's profile Send private message Visit poster's website Reply with quote
Randall Hyde



Joined: 03 Dec 2003
Posts: 57
Randall Hyde
decard wrote:
Of course you can Smile
I suggest you to take a look at GoLink ([url]http:\\www.godevtool.com[/url]) - it is quite easy to use.

regards


I've been playing around with polink from the Pelles C package. I'm putting together a "free" version of HLA based on FASM and POLINK and, thus far, it's working okay.
Cheers,
Randy Hyde
Post 04 Mar 2004, 20:11
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-2020, Tomasz Grysztar.

Powered by rwasa.