NASM - The Netwide Assembler
NASM Forum => Website and Forum => Topic started by: JnZn558 on May 08, 2012, 04:02:43 PM
-
I found nasm source code at http://repo.or.cz/w/nasm.git, is that complete code? do you know a description how to compile it? because I have problem with its code during compile with VS08
-
Yeah, the code in the git repository should be complete. You might be better of with source code from here:
http://www.nasm.us/pub/nasm/snapshots/latest/
Unless I'm mistaken, it's partially built - the Perl parts and autoheader/autoconf(?). I can't give you any advice on compiling in VS. What problem(s) are you running into?
Best,
Frank
-
you might need to install MinGW and use VS as a compiler
-
I have installed cygwin, and got it compiled thx you all, can you tell me where is the linker?
-
"ld.exe" should be in your "bin" directory, but "gcc.exe" should find it unassisted (if you've got CygWin set up properly). I should think just "./configure"/"make" should work - might need "autogen.sh" for code from git(?). I actually use "make install_everything" but that gives you rdoff utilities you probably don't need...
Yell if you have problems with it.
Best,
Frank
-
"ld.exe" should be in your "bin" directory, but "gcc.exe" should find it unassisted (if you've got CygWin set up properly). I should think just "./configure"/"make" should work - might need "autogen.sh" for code from git(?). I actually use "make install_everything" but that gives you rdoff utilities you probably don't need...
Yell if you have problems with it.
Best,
Frank
Frank, I am sorry 4 my missunderstanding question. What I mean is, is nasm only a compiler not linker inclusive?
I just read info from other people that nasm only make asm to object file, but not link it to exe. that mean link is not a part of nasm? which linker is compatible with nasm?
-
Right, Nasm does not include a linker and assembles your source code to object files. Strictly speaking, Nasm can be coaxed into building a "hand made" PE header (or ELF executable header, for that matter) in "-f bin" output mode, but it probably isn't what you want to do.
I got confused and was telling you where the CygWin "ld.exe" linker was (which should work(?) with Nasm). You started off talking about VS08, so you probably want to use "link.exe". I'm not sure exactly where to find it - same place as "masm.exe" and the other executables, probably. How do you guys say "locate"? :) "find link.exe", probably? Should be somewhere in that VS directory...
There are files in Nasm's "contrib" directory that may help you get Nasm "hooked up" with the rest of it. Sorry I can't be more help.
Best,
Frank
-
How do you guys say "locate"? :)
Where.exe
Unfortunately, that's in the SDK bin directory, so if you know where that is, you already know where to find Link.exe.
For /F %I In ("Link.exe") Do Dir %~$PATH:I
That'll find it if the system has already been pointed to it, in which case you don't need to find it.
Here's the sledge hammer.
Echo Off
For /S \ %I In (Link.exe) Do If Exist %I Echo %I
Echo On
Oops, I forgot. We Windows guys are suppose to be all point and click :)
-
Oops, I forgot. We Windows guys are suppose to be all point and click :)
You mean you didn't use the On Screen Keyboard (http://windows.microsoft.com/en-us/windows7/Type-without-using-the-keyboard-On-Screen-Keyboard)!? :P
-
I was serious. We are supposed to be point and click. Don't attract attention or WAU will point all my file associations back at Visual Studio again. :)
-
I have a question related to this topic (but probably not for a new one).
The Patches (http://www.nasm.us/patches.php) page kind of forgets to say where do we submit those patches.
So where do we submit patches to?
I generated one with Git GUI and I'm not sure if you'll get it queued for review/approval after I clicked commit (didn't see anything else that could possibly output a patch file).
Also which hub should we use. The one on repo.or.cz or the sourceforge one?
-
Probably the best thing is to join the developer's list:
https://lists.sourceforge.net/lists/listinfo/nasm-devel/
I think there's a way to get GIT to produce a diff suitable for mailing... but I forget what it is...
Thanks for your contribution!
Best,
Frank