MSVC++ compilers

This is a discussion on MSVC++ compilers within the Windows Programming forums, part of the Platform Specific Boards category; What is the "/Align" value in the MSVC++ 6.0 compiler....

  1. #1
    Caffienated jinx's Avatar
    Join Date
    Oct 2001
    Posts
    235

    MSVC++ compilers

    What is the "/Align" value in the MSVC++ 6.0 compiler.
    Weeel, itss aboot tieme wee goo back too Canada, eeehy boyss.

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    From the MSVC++ help...

    >>>
    /align
    midl /align:alignment

    alignment
    Specifies the alignment for types in the library. The alignment value can be 1, 2, 4, or 8. The value 1 indicates natural alignment; n indicates alignment on byte n. When you do not specify the /align switch, the default is 8.
    Example
    midl /align:4 filename.idl

    Remarks
    The /align switch is functionally the same as the MIDL /Zp option and is recognized by the MIDL compiler solely for backward compatibility with MKTYPLIB. If you are generating a new makefile, use the /Zp switch.

    The alignment value corresponds to the /Zp option value used by the Microsoft C/C++ compiler.Be sure that you specify the same alignment when you invoke the C compiler as when you invoke the MIDL compiler. For more information, see your Microsoft C/C++ programming documentation.

    For a discussion of the potential dangers in using nonstandard packing levels, see the /Zp help topic.
    <<<

    ... or did you mean this one from the same source ...

    >>>
    /ALIGN (Section Alignment)
    Home | Overview | How Do I | Linker Options

    Syntax
    /ALIGN:number

    This option specifies the alignment of each section within the linear address space of the program. The number argument is in bytes and must be a power of two. The default is 4K. The linker issues a warning if the alignment produces an invalid image.
    <<<
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Trouble with MSVC, Mingw32 and Code::Blocks
    By Brafil in forum C Programming
    Replies: 11
    Last Post: 10-12-2009, 12:34 PM
  2. Replies: 5
    Last Post: 10-22-2006, 08:35 PM
  3. C++ Builder Comparison
    By ryanlcs in forum Tech Board
    Replies: 14
    Last Post: 08-20-2006, 10:56 AM
  4. GCC (cygwin) much faster than MSVC, Borland?
    By Sargnagel in forum C Programming
    Replies: 15
    Last Post: 08-05-2003, 04:15 AM
  5. Compilers, Compilers, Compilers
    By Stan100 in forum C++ Programming
    Replies: 11
    Last Post: 11-08-2002, 04:21 PM

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