flat assembler
Message board for the users of flat assembler.

Index > Unix > Where is the clib

Author
Thread Post new topic Reply to topic
iic2



Joined: 26 Jun 2008
Posts: 122
iic2 06 Jun 2009, 03:09
I'm down here in UNIX. What I plan to do is so very simple when the server will ONLY be a dedicated web server but everything is an issue long before building and run it. That's what asm people do I guest. I been so spoil and its all your fault Smile There not much down here but I bet it's more than what I need. I have read every post down here and will be re-reading for a long time.

Before long I will understand them all but so far I only have a few questions that is related to getting all of FASM required files from FreeBSD. There's nothing like knowing your enviorment before hand. Right now I know nothing about (C) and where they are.

BSD people don't talk ASM nor C. Scripting is what they do. Image a (c) person coming to Fasm Forum trying to sell you C. -- wt-f & * * %^ - Getty up --
......................................
......................................
pthien - 07 Oct 2003
http://board.flatassembler.net/topic.php?t=407
Quote:
fasm under FreeBSD:
I did have to do a "brandelf -t Linux fasm" to get FreeBSD to execute it.

Do we have to have Linux binary installed in FreeBSD to use FASM?
If so than I'll install it, but I really hope not.
......................................
......................................
NULLPointer - 28 May 2004
JohnFound - 14 Jun 2004
http://board.flatassembler.net/topic.php?t=1638
Quote:
What about a BeOS port?:
IMHO, pure assembly port will be better than one using clib

clib ... I been looking for them and other needed files in FreeBSD /usr/src but it's so big and confusing (. There are so many files, 495 megabytes strong) Can someone point to what I need for FASM so I can gather up these files and study them before install time FASM etc etc ???

Thanks
and It's lonely DOWN h e r e ...
Post 06 Jun 2009, 03:09
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20445
Location: In your JS exploiting you and your system
revolution 06 Jun 2009, 03:16
Maybe clib == libc?
Post 06 Jun 2009, 03:16
View user's profile Send private message Visit poster's website Reply with quote
iic2



Joined: 26 Jun 2008
Posts: 122
iic2 06 Jun 2009, 03:30
What a wonderful voice ... but why maybe. So libc and the config out of sbin is all I need for FASM? or all I need is libc? If so Wow! No Linux binary, no nothing Smile
Post 06 Jun 2009, 03:30
View user's profile Send private message Reply with quote
iic2



Joined: 26 Jun 2008
Posts: 122
iic2 06 Jun 2009, 06:44
fasm-1.67.38.tar.gz has it own libc. Is this D end Very Happy but the only thing missing is FasmW. I like FasmW. So I guest I must use the EE editor. Nothing fancy but can it get the job done? Not ready for Vi unless some one say so or if there is a another suggestion as an IDE for FASM for BSD. I want to post my post Hello World by this coming Tuesday but no latter than Friday. Oooh-wee.

Thanks again
Post 06 Jun 2009, 06:44
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20445
Location: In your JS exploiting you and your system
revolution 06 Jun 2009, 08:00
Just assemble fasm to object code, link the fasm object code with the libc in your platform. Then you have a fasm binary executable.
Post 06 Jun 2009, 08:00
View user's profile Send private message Visit poster's website Reply with quote
ManOfSteel



Joined: 02 Feb 2005
Posts: 1154
ManOfSteel 06 Jun 2009, 15:25
You still need to brand the produced ELF files AFAIK: brandelf -v -t FreeBSD myelf.



iic2 wrote:
I been so spoil and its all your fault

Well, in the end you're free to choose .NET or brainfuck if it suits you better.

iic2 wrote:
BSD people don't talk ASM nor C. Scripting is what they do.

Yes, and it's all the fault of Master Foo, his apprentice Nubi and all their daemons. Here's the whole story.
Don't exaggerate! The whole system and most of the userland are made in C. Scripting is mainly used to automate boring routines and harness the power of the system and its numerous tools, while keeping the whole thing unix-simple.

iic2 wrote:
I been looking for them and other needed files in FreeBSD /usr/src but it's so big and confusing (. There are so many files, 495 megabytes strong)

/usr/src is mostly the system and userland source and it's completely optional.

iic2 wrote:
No Linux binary, no nothing

The whole Linux emulation is optional too. You may never need it.

iic2 wrote:
another suggestion as an IDE for FASM for BSD

I don't know of any IDE since I never use any, under any OS, but if you need some light editors à la Microsoft Notepad, there's Mousepad (Xfce's default editor) and Leafpad, both GTK+2-based.
Post 06 Jun 2009, 15:25
View user's profile Send private message Reply with quote
iic2



Joined: 26 Jun 2008
Posts: 122
iic2 07 Jun 2009, 15:07
ManOfSteel I know you know me. I always be trying to crack a joke. That was my way of sending a BIG thank you to all ASM community. They tell you why you should use asm. I hear them well and took the dive. I'm a living witness and I guarantee you, there is nothing worse in life than not coding assembler for months. It hurts.

That was a fun read ... Master Foo is cool and I needed that. I like learning scripting but once I get FASM running it's only going to be about making syscalls, cgi and anything I can come up with web related.

I just un-packed Fasm to my machine and it looks so small and pretty. Could anyone list the steps of where I go from here. I don't know how to link against the libc or compile. After that I will only be asking for very few web related program examples. All I need see one to practice with than I'll be back to normal.
Post 07 Jun 2009, 15:07
View user's profile Send private message Reply with quote
ManOfSteel



Joined: 02 Feb 2005
Posts: 1154
ManOfSteel 07 Jun 2009, 22:32
readme.txt wrote:

The fasm.o is an object file in ELF format. To get the final executable for
your system, you need to use the appropriate tool to link it with the C
library available on your platform. With the GNU tools it is enough to use
this command:

gcc fasm.o -o fasm
Post 07 Jun 2009, 22:32
View user's profile Send private message Reply with quote
iic2



Joined: 26 Jun 2008
Posts: 122
iic2 08 Jun 2009, 05:37
Bad habit not reading readme, updates etc. I was looking for it in the doc and reading src. This is more easier than I thought and this link has steps for hello-world. Couldn't understand it until now.

http://board.flatassembler.net/topic.php?t=6722

Thanks ManOfSteel
Post 08 Jun 2009, 05:37
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.