flat assembler
Message board for the users of flat assembler.

Index > Linux > Build FASM without gcc?

Author
Thread Post new topic Reply to topic
TmX



Joined: 02 Mar 2006
Posts: 843
Location: Jakarta, Indonesia
TmX 11 Mar 2011, 14:49
In Windows, all you need to build FASM is FASM itself.
In Linux, you need gcc/ld.

Is is possible to build FASM without them?
Post 11 Mar 2011, 14:49
View user's profile Send private message Reply with quote
Endre



Joined: 29 Dec 2003
Posts: 215
Location: Budapest, Hungary
Endre 12 Mar 2011, 13:57
TmX wrote:
In Windows, all you need to build FASM is FASM itself.
In Linux, you need gcc/ld.

Is is possible to build FASM without them?

Yes, it is, but doing that needs exceptional skills Wink:
Code:
tar -xzf fasm-1.69.31.tgz 
cd fasm/source/Linux
fasm fasm.asm    
Post 12 Mar 2011, 13:57
View user's profile Send private message Reply with quote
Tyler



Joined: 19 Nov 2009
Posts: 1216
Location: NC, USA
Tyler 13 Mar 2011, 00:04
The problem is linking. PE is the only format for which Fasm has built in(through macros) linking support. When building non-PE executables, you need gcc or ld to link in all the system calls Fasm uses.

EDIT: Actually, I was wrong. See here.
Post 13 Mar 2011, 00:04
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 13 Mar 2011, 00:45
If you have some cheapo wine box handy, then you don't need any gcc.
Post 13 Mar 2011, 00:45
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8356
Location: Kraków, Poland
Tomasz Grysztar 15 Mar 2011, 10:53
The standard Linux version of fasm does not require gcc, it assembles itself into a final executable.
Post 15 Mar 2011, 10:53
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.