[haiku-development] Re: Switching back form yasm to nasm

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 27 Mar 2014 22:14:25 +0100

On 26.03.2014 21:05, Jonathan Schleifer wrote:
I know that nasm was replaced with yasm some time ago because yasm
supported newer instructions, but these days, the situation reversed:
Now nasm supports newer instructions.

Therefore, I'd like to switch back from yasm to nasm as it provides
newer instructions and also offers a disassembler, ndisasm.

FWIW, our stage 1 boot loader was written using nasm. yasm never did compile it, so ATM there's an assembled version of the stage 1 boot loader in our repository. When switching to nasm this could finally be removed again.

Another alternative route would be to migrate to the Intel Syntax of
GAS, which became quite usable in recent years. We have GAS anyway,
as it's part of binutils, and they usually support all new opcodes as
well. So the question is: Replace yasm by nasm or just get rid of
yasm?

I don't mind either way, as long as it works. Switching to gas is the solution with the most overhead, though. And since gcc 2 is tied to an older binutils version, you might not be able to use all the features of current versions in code that needs to be buildable with gcc 2.

CU, Ingo

Other related posts: