flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Unix > fasm under Freebsd

Author
Thread Post new topic Reply to topic
hamoz



Joined: 14 Dec 2006
Posts: 29
fasm under Freebsd
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
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
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: 4641
Location: Argentina
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: 71
Location: U.S.A.
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


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.