Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

NsK

macrumors member
Original poster
Dec 7, 2006
63
0
I'm taking this Hardware system class comp228......at school we have to use the terminal and a program called DDD to do the programming part of the assignment...i'm wondering if its possible to do this at home on my macbook...I know there is a terminal but I try it and there is no NASM function on it...I need to be able to to load the NASM command and run DDD for my assignment...anyway is it possible to do NASM on macbook???
 

minus the ben

macrumors newbie
Nov 24, 2006
10
0
near chicago
erm...


[Mon Jan 29@20:15:55 benjamin@gob ~ ] nasm -h
usage: nasm [-@ response file] [-o outfile] [-f format] [-l listfile]
[options...] [--] filename
or nasm -r for version info (obsolete)
or nasm -v for version info (preferred)

-t assemble in SciTech TASM compatible mode
-g generate debug information in selected format.
-e preprocess only (writes output to stdout by default)
-a don't preprocess (assemble only)
-M generate Makefile dependencies on stdout

-E<file> redirect error messages to file
-s redirect error messages to stdout

-F format select a debugging format

-I<path> adds a pathname to the include file path
-O<digit> optimize branch offsets (-O0 disables, default)
-P<file> pre-includes a file
-D<macro>[=<value>] pre-defines a macro
-U<macro> undefines a macro
-X<format> specifies error reporting format (gnu or vc)
-w+foo enables warnings about foo; -w-foo disables them
where foo can be:
macro-params macro calls with wrong no. of params (default off)
macro-selfref cyclic macro self-references (default off)
orphan-labels labels alone on lines without trailing `:' (default off)
number-overflow numeric constants greater than 0xFFFFFFFF (default on)
gnu-elf-extensions using 8- or 16-bit relocation in ELF, a GNU extension (default off)

response files should contain command line parameters, one per line.

For a list of valid output formats, use -hf.
For a list of debug formats, use -f <form> -y.
 

NsK

macrumors member
Original poster
Dec 7, 2006
63
0
do we need to install something to have the nasm commands in the terminal???

because I open terminal and type nasm -h .....it says -bash: nasm: command not found

Maybe he was trying it in all-caps :p

and no...I wasn't typing in caps lol
 

bousozoku

Moderator emeritus
Jun 25, 2002
16,120
2,397
Lard
do we need to install something to have the nasm commands in the terminal???

because I open terminal and type nasm -h .....it says -bash: nasm: command not found



and no...I wasn't typing in caps lol

You might install the Developer tools package.

It used to be available in a folder called Installers within the Applications folder.
 

NsK

macrumors member
Original poster
Dec 7, 2006
63
0
I don't see that folder....I didn't format or anything since I got my macbook c2d....maybe I can find it on the install cds.......do I have to install xcode or something???

and btw, does the macbook comes with a DDD debugger or something....
 

bronxbomber92

macrumors regular
Nov 23, 2006
109
0
I don't see that folder....I didn't format or anything since I got my macbook c2d....maybe I can find it on the install cds.......do I have to install xcode or something???

and btw, does the macbook comes with a DDD debugger or something....
You can either get Xcode by downloading it once becoming a ADC member (free) or they should be on your install discs.. As for DDD, Xcode has Grapical frontend for GDB, so that should suit your needs.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.