flat assembler
Message board for the users of flat assembler.

Index > Unix > fasm under Freebsd

Author
Thread Post new topic Reply to topic
hamoz



Joined: 14 Dec 2006
Posts: 29
hamoz 20 Feb 2007, 03:39
Hello,

why the fasm has no executable file ( object file )

and how could make it executable, note that I have no

GCC.

thanks alot
Post 20 Feb 2007, 03:39
View user's profile Send private message Reply with quote
yumka



Joined: 09 Feb 2007
Posts: 38
Location: Tenochtitlan
yumka 20 Feb 2007, 04:01
Use the libc version, is a generic package for all *nix with libc

Al you need is link the object file with libc

gcc fasm.o -o fasm

Other option is to use linux version in a compatibilty mode of freebsd.

I'm not unix user, so is all that i can say for now.

Maybe later an expert in unix could give you better explanation. Wink

Cheers.
Post 20 Feb 2007, 04:01
View user's profile Send private message Visit poster's website Reply with quote
hamoz



Joined: 14 Dec 2006
Posts: 29
hamoz 20 Feb 2007, 04:08
yumka, thanks alot Smile
Post 20 Feb 2007, 04:08
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4624
Location: Argentina
LocoDelAssembly 20 Feb 2007, 12:07
http://board.flatassembler.net/topic.php?t=6210 (In that case I downloaded the libc version which is an object file and then I linked it on FreeBSD)
Post 20 Feb 2007, 12:07
View user's profile Send private message Reply with quote
TheRaven



Joined: 22 Apr 2008
Posts: 91
Location: U.S.A.
TheRaven 28 Feb 2015, 07:15
FreeBSD Now comes with CLang (C & C++ Language compiler) supporting both objective and specification 11 in both C & C++ natively compiled for the O.S. Anyone considering a BSD derivative or a new compiler will appreciate the fact that CLang is cross platform and designed modularly. It's quick, clean, extensible and open sourced under a BSD license. Additional support includes LLVM as a backend and LLDB (debugger) at various levels of development.

Have not used LLDB or explored LLVM greatly, but am pleased with CLang's simplicity. Familiar with the GCC commandline interface CLang takes the fasm object and outputs an executable requiring little syntax.

clang fasm.o -o fasm

...same as GCC, but CLang is native to the platform it was itself compiled for and comes stock with the BSD systems now. Less download, installation and versioning headaches - to a degree. It's taken a while, but BSD and CLang are both getting where they should be.

Sad that the last post prior is dated 2007 -- kind of yanks my chain...

Enjoy!

Oddly, by the way -- the fasm executable output (on my system) is at 96.6 K. It almost worries me that the executable should be larger, but have noticed that FAsm compiles to a much smaller size in FreeBSD than in Windows -- as long as it runs...
Post 28 Feb 2015, 07:15
View user's profile Send private message 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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.