Can we do NASM on macbook??? so confused

Discussion in 'Mac Programming' started by NsK, Jan 29, 2007.

  1. NsK
    macrumors member

    Joined:
    Dec 7, 2006
    #1
    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???
     
  2. macrumors newbie

    Joined:
    Nov 24, 2006
    Location:
    near chicago
    #2
    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.
     
  3. macrumors 68020

    bobber205

    Joined:
    Nov 15, 2005
    Location:
    Oregon
    #3
    That means yes. :D
     
  4. macrumors 65816

    kalisphoenix

    Joined:
    Jul 26, 2005
    #4
    Maybe he was trying it in all-caps :p
     
  5. NsK
    thread starter macrumors member

    Joined:
    Dec 7, 2006
    #5
    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
     
  6. Moderator emeritus

    Joined:
    Jun 25, 2002
    Location:
    Gone but not forgotten.
    #6
    You might install the Developer tools package.

    It used to be available in a folder called Installers within the Applications folder.
     
  7. NsK
    thread starter macrumors member

    Joined:
    Dec 7, 2006
    #7
    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....
     
  8. macrumors newbie

    Joined:
    Nov 24, 2006
    Location:
    near chicago
    #8
    they should be on your install dvd(s)
     
  9. macrumors regular

    Joined:
    Nov 23, 2006
    #9
    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.
     
  10. Moderator emeritus

    mkrishnan

    Joined:
    Jan 9, 2004
    Location:
    Grand Rapids, MI, USA
    #10
    It's often on the second install DVD, I think.
     
  11. macrumors 68020

    bobber205

    Joined:
    Nov 15, 2005
    Location:
    Oregon
    #11
    My macbook's disks: I thought that too and it wasn't. It's hidden on the first still. The second DVD has nothing that wasn't "hidden".
     

Share This Page