flat assembler
Message board for the users of flat assembler.
Index
> Linux > building fasm from the sources on linux |
Author |
|
daggs 02 Feb 2022, 08:06
Greetings,
is there a tutorial on how to build fasm from the sources provided in github_ Thanks |
|||
02 Feb 2022, 08:06 |
|
revolution 02 Feb 2022, 08:10
You need fasm to assemble fasm. Yes, really, that is kind of tautological, but fasm is written in assembly for fasm to assemble.
So I suggest that the easiest way is to downlod the zip from here: http://flatassembler.net/download.php Then extract, and the executable file is already there. |
|||
02 Feb 2022, 08:10 |
|
daggs 02 Feb 2022, 08:40
thanks,
what is the license of fasm? |
|||
02 Feb 2022, 08:40 |
|
sylware 02 Feb 2022, 12:10
It is all about "bootstrap". Bootstrapping a desktop or server OS (open source), should be only done with a shmol set of shmol programs and reaching a "full" desktop/server OS should be done in shmol number of steps.
This is not possible anymore: you need 7483274932847329 huge programs, and 473892473294 steps to reach a "full" desktop/server OS. This is seriously toxic and broken (mainly because of toxic, corporate grade, GNU software steering started 10 years ago). fasmg provides elf64 and coff bootstraping assembler (aka itself). Here, at least, things are tried the right sane way. |
|||
02 Feb 2022, 12:10 |
|
daggs 03 Feb 2022, 06:47
sylware wrote: It is all about "bootstrap". Bootstrapping a desktop or server OS (open source), should be only done with a shmol set of shmol programs and reaching a "full" desktop/server OS should be done in shmol number of steps. my intention was to build only fasm, not an entire os |
|||
03 Feb 2022, 06:47 |
|
revolution 03 Feb 2022, 07:37
I think it is the same for GCC. You can't compile GCC from the source without having GCC already compiled and running.
I know of one way to avoid the self dependency. That would be to create a listing with the instructions and resultant hex codes for each line. Then use a hex editor to manually create the first binary. xxd can do hex-to-binary, perhaps piped through sed or awk to remove the comments before parsing. |
|||
03 Feb 2022, 07:37 |
|
FlierMate 03 Feb 2022, 08:02
I saw this in High-Level Language on this forum:
DSblizzard wrote:
It is an interesting point (self-compilation). What did he exactly mean? "Drive compiles itself......Drive [language] is written in itself, first version was interpreted (source in Python)" |
|||
03 Feb 2022, 08:02 |
|
daggs 03 Feb 2022, 09:39
revolution wrote: I think it is the same for GCC. You can't compile GCC from the source without having GCC already compiled and running. you are correct, however, I need it in 3 different oses and it does;'t exists in alpine linux |
|||
03 Feb 2022, 09:39 |
|
revolution 03 Feb 2022, 09:45
You can use fasm in any one of your OSes to compile versions for all the others. Then transfer the binary file to the target OS
You can also use fasm in Windows to compile binary outputs for Linux, or Unix, or whatever. |
|||
03 Feb 2022, 09:45 |
|
daggs 03 Feb 2022, 11:15
revolution wrote: You can use fasm in any one of your OSes to compile versions for all the others. Then transfer the binary file to the target OS that isn't the issue. as I use linux, I prefer to use the distro's repos fasm exists in ubuntu's repos, however I cannot seem to find in rh and alpne's repos. that requires me to have a binary in the source repos. that is not advised. |
|||
03 Feb 2022, 11:15 |
|
sylware 03 Feb 2022, 11:19
@revolution you are more than right: when I was refering to huge mistakes made by the GNU steering committee, the first huge one was to make gcc a c++ only software. Before, gcc was written using simple and lean C89. This has a very bad smell of conspiracy: this was the time when a good pedophile friend/intermediary of bill G. was financing GNU at the MIT... (that trash/monster of epstein).
If you want to sabotage open source software, make it c++ with an insane SDK using tons of complex deps and code generators. |
|||
03 Feb 2022, 11:19 |
|
revolution 03 Feb 2022, 11:54
daggs wrote: fasm exists in ubuntu's repos, however I cannot seem to find in rh and alpne's repos. How does Unbuntu deal with fasm? It can easily distribute the sources, but then no one could make a binary. So it would have to distribute the binary also, or what? |
|||
03 Feb 2022, 11:54 |
|
TmX 04 Feb 2022, 11:32
daggs wrote:
To build FASM from source, you have to use the official FASM binary (or the one provided by your distro package manager). In the same way, to be able to compile C/C++ codes, you first have to install gcc/clang. Then you can build gcc/clang on your own. Is there something wrong with that? |
|||
04 Feb 2022, 11:32 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.