C program for assembler

This is a discussion on C program for assembler within the C Programming forums, part of the General Programming Boards category; Can anyone tell me how to code a C program for pass one of two pass assembler...

  1. #1
    Registered User
    Join Date
    Nov 2006
    Posts
    2

    C program for assembler

    Can anyone tell me how to code a C program for pass one of two pass assembler

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,452
    Nope
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User kryptkat's Avatar
    Join Date
    Dec 2002
    Posts
    638
    if you mean convert c to asm you can use the -S of the switches.

    [quote]
    C:\borland\bcc55\bin>bcc32
    Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
    Syntax is: BCC32 [ options ] file[s] * = default; -x- = turn switch x off
    -3 * 80386 Instructions -4 80486 Instructions
    -5 Pentium Instructions -6 Pentium Pro Instructions
    -Ax Disable extensions -B Compile via assembly
    -C Allow nested comments -Dxxx Define macro
    -Exxx Alternate Assembler name -Hxxx Use pre-compiled headers
    -Ixxx Include files directory -K Default char is unsigned
    -Lxxx Libraries directory -M Generate link map
    -N Check stack overflow -Ox Optimizations
    -P Force C++ compile -R Produce browser info
    -RT * Generate RTTI -S Produce assembly output
    -Txxx Set assembler option -Uxxx Undefine macro
    -Vx Virtual table control -X Suppress autodep. output
    -aN Align on N bytes -b * Treat enums as integers
    -c Compile only -d Merge duplicate strings
    -exxx Executable file name -fxx Floating point options
    -gN Stop after N warnings -iN Max. identifier length
    -jN Stop after N errors -k * Standard stack frame
    -lx Set linker option -nxxx Output file directory
    -oxxx Object file name -p Pascal calls
    -tWxxx Create Windows app -u * Underscores on externs
    -v Source level debugging -wxxx Warning control
    -xxxx Exception handling -y Produce line number info
    -zxxx Set segment names

  4. #4
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    And what about other compilers?

    It seems to -S in GCC too, but I couldn't find how to do it in VC++.
    Last edited by maxorator; 11-02-2006 at 02:03 PM.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  5. #5
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,452
    Well there's
    cl /?

    Then look at the Fa option.

    Or maybe RTFM or STFW

    *shrug*
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Issue with program that's calling a function and has a loop
    By tigerfansince84 in forum C++ Programming
    Replies: 9
    Last Post: 11-12-2008, 12:38 PM
  2. Need help with a program, theres something in it for you
    By engstudent363 in forum C Programming
    Replies: 1
    Last Post: 02-29-2008, 12:41 PM
  3. Replies: 4
    Last Post: 02-21-2008, 09:39 AM
  4. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21