Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Assembly x86 > Re: asm noob ne...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 12 Topic 4585 of 4728
Post > Topic >>

Re: asm noob needs help compiling tutorial samples!?

by Paul Carter <spamtrap@[EMAIL PROTECTED] > Mar 23, 2008 at 01:40 PM

Frank Kotler wrote:
> giddy wrote:
>> hi,
>>
>> I'm an experienced C# programmer i also know quite a couple of other
>> things.
>>
>> I tried to learn x86 asm before and got turned off/stuck with the
>> complex compiling and the never ending types of compilers
>> (TASM,MASM,DASM??) ....
>>
>> I finally found a nice tutorial but i can't seem to compile the source
>> code!?
>> http://drpaulcarter.com/pcasm/
>>
>> I downloaded the Microsoft Source code on the bottom, but im having
>> some problems compiling it.
>> http://drpaulcarter.com/pcasm/ms-ex.zip
>>
>> I've got nasm.... ....
>> In the source file itself is says:
>> ; Using MS C/C++
>> ; nasm -f win32 first.asm   <-----------This works fine, i get
>> first.obj outputted.
>> ; cl first.obj driver.c asm_io.obj  <---------- Were do i get cl from?
>> It didn't come with NASM??(I have the other files)
>>
>> I'm guessing cl is a linker right? How do i get it?
> 
> Should be some part of "MS C/C++"... It's looking for a compiler - which

> invokes the linker... which links first.obj, driver.obj, and asm_io.obj 
> into "first.exe". "driver.c", as you've probably seen, contains "main", 
> and just calls "asm_main"... which is declared (as "global") in your 
> "first.asm". "asm_io.obj" can be assembled with Nasm from "asm_io.asm", 
> if you haven't got it... or it turns out not to be the right format.
> 
> The idea of Dr. Carter's tut using C for all the I/O (that's what 
> "asm_io.asm" does) is that it'll work cross platform. Works slick on 
> Linux... where everybody uses gcc, pretty much. Under Windows, there's 
> more choice. If "cl" isn't what you type to compile a C program, try 
> whatever you *do* use. Same thing, just some of the object files are 
> made from asm, not C.
> 
> If for some reason the compiler you're using isn't liking Dr. Carter's 
> tut, post the error messages, and we can probably fix it.
> 
> Best,
> Frank
> 

cl is the Microsoft C/C++ command line compiler. You can download the 
free Visual Studio C++ 2008 Express program from MS to get.

http://www.microsoft.com/express/product/

You will need to open a Visual Studio Command Prompt to create a Command 
window that has it's environment set up to use cl. (An entry for this 
prompt is added to the Visual Studio Express start menu and to the 
program's menu too.)

My tutorial assumes you are familiar with C so it doesn't cover how to 
use your C compiler.

HTH

Paul Carter
 




 12 Posts in Topic:
asm noob needs help compiling tutorial samples!?
giddy <spamtrap@[EMAI  2008-03-23 00:51:51 
Re: asm noob needs help compiling tutorial samples!?
Frank Kotler <spamtra  2008-03-23 10:18:25 
Re: asm noob needs help compiling tutorial samples!?
Paul Carter <spamtrap  2008-03-23 13:40:43 
Re: asm noob needs help compiling tutorial samples!?
giddy <spamtrap@[EMAI  2008-03-23 04:40:48 
Re: asm noob needs help compiling tutorial samples!?
Alex Buell <spamtrap@  2008-03-23 09:15:35 
Re: asm noob needs help compiling tutorial samples!?
giddy <spamtrap@[EMAI  2008-03-23 13:02:03 
Re: asm noob needs help compiling tutorial samples!?
Paul Carter <spamtrap  2008-03-23 17:16:33 
Re: asm noob needs help compiling tutorial samples!?
giddy <spamtrap@[EMAI  2008-03-23 12:51:43 
Re: asm noob needs help compiling tutorial samples!?
giddy <spamtrap@[EMAI  2008-03-24 08:47:35 
Re: asm noob needs help compiling tutorial samples!?
Paul Carter <spamtrap  2008-03-24 16:51:58 
Re: asm noob needs help compiling tutorial samples!?
giddy <spamtrap@[EMAI  2008-03-25 01:30:36 
Re: asm noob needs help compiling tutorial samples!?
Scott Moore <spamtrap  2008-04-04 10:01:35 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 0:29:51 CDT 2008.