flat assembler
Message board for the users of flat assembler.

Index > Main > FASM Operative Sistem

Author
Thread Post new topic Reply to topic
farresito



Joined: 06 Jul 2010
Posts: 18
farresito
Hi!

I have been using FASM on both Linux and Windows, but I think will go with FreeBSD for a Server. So will it work, right? The source code works on ALL the operative sistems that have Intel/AMD or supported, or I may have problems wth, for example, a non based UNIX system?

Thanks a lot! I need that because if it doesnt work, I think i will no move to FreeBSD.[/i][/b]
Post 13 Jul 2010, 20:23
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
Make sure your FreeBSD installation is not 64-bit only (if it is not always the case) and it will work. You'll have to use the Unix/libc version and link the object since there is no executable provided in the package.
Post 13 Jul 2010, 21:04
View user's profile Send private message Reply with quote
ManOfSteel



Joined: 02 Feb 2005
Posts: 1155
ManOfSteel
How about using the ports tree?
Post 13 Jul 2010, 22:12
View user's profile Send private message Reply with quote
farresito



Joined: 06 Jul 2010
Posts: 18
farresito
LocoDelAssembly,

I red a post from you that you asked a Hello World for FreeBSD (http://board.flatassembler.net/topic.php?t=6210). May I have incompatibilities? (I dont know what is SYSV nor ABI...)

Thanks!

PD: So all I need is to compile and link it to a C library, right? And if I would like to change from OS, it will be the same? Thanks so much!
Post 13 Jul 2010, 22:28
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
farresito, check the same thread again, I've just updated it.

To make fasm work just use "gcc fasm.o -o fasm" and that's it.

You can of course use only plain "format ELF" and use libc like the libc examples and then link, in that case your code is very likely to work on many Unix-like OSes targets (should be all supporting libc but there could be some specifics that are transparent when you code in C but not in Assembly). Obviously only the ".o" file will be portable, you'll have to link for each Unix-like OS you like to support no matter whether you use libc or plain system calls as the executables are not portable (some systems allow to run ELF targeted for other systems like FreeBSD with its Linux emulation support, but none will support arbitrary foreign ABIs)
Post 13 Jul 2010, 23:56
View user's profile Send private message Reply with quote
farresito



Joined: 06 Jul 2010
Posts: 18
farresito
Thanks a lot! All right! So Im going to try what you explained me.

Gracias Wink

PD: How many hours do you spend in the forum? You always reply my questions Very Happy!
Post 14 Jul 2010, 00:48
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
WHAT?! IS THERE SOMETHING ELSE IN THIS LIFE THAN THIS FORUM???!!!

ManOfSteel, sorry I've skipped your post earlier. Yes, it sounds like a good idea since by looking at this, it is clear that it is pretty well maintained. I hope it is available in stable releases (if applicable).
Post 14 Jul 2010, 01:19
View user's profile Send private message Reply with quote
ManOfSteel



Joined: 02 Feb 2005
Posts: 1155
ManOfSteel
LocoDelAssembly wrote:
I hope it is available in stable releases (if applicable).

Third party applications are independent from the operating system. When installed from the ports tree (what you saw in the link) they are always available on all systems equally (-RELEASE, -STABLE and -CURRENT) since the system always fetches the source from the application's website. Other than the source location, the only thing stored in the tree is the patch.
Binary packages, on the other hand, never change for a -RELEASE but are updated every few weeks in the -STABLE repository.
Post 14 Jul 2010, 09: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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.