MSVC 1.5 - how do I force strings into _CODE segment

Discussion in 'C Programming' started by Ed, Nov 29, 2006.

  1. Ed

    Ed Guest

    I'm not sure if this is the best group to post this, but I have a
    question about ancient MSVC 1.5.

    Right now, all strings in my code, i.e. text in quotes, are put in the
    _DATA segment by default.

    I need to tell the compiler/linker to put these in the _CODE segment
    where there is more space available.

    Is there a way to do this? I've looked through the MSVC 1.5 help files
    and can't find any compiler or linker switches that do this.

    Thanks for your help!

    Ed
    Ed, Nov 29, 2006
    #1
    1. Advertising

  2. Ed

    santosh Guest

    Ed wrote:
    > I'm not sure if this is the best group to post this, but I have a
    > question about ancient MSVC 1.5.
    >
    > Right now, all strings in my code, i.e. text in quotes, are put in the
    > _DATA segment by default.
    >
    > I need to tell the compiler/linker to put these in the _CODE segment
    > where there is more space available.
    >
    > Is there a way to do this? I've looked through the MSVC 1.5 help files
    > and can't find any compiler or linker switches that do this.
    >
    > Thanks for your help!


    This is off-topic here. Try posting at a comp.os.ms-windows.* group.
    See msdn.microsoft.com or ask at one of their forums. Try using the /O1
    switch perhaps.
    santosh, Nov 29, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. bob
    Replies:
    6
    Views:
    26,818
    G. G. Ditzel
    Nov 25, 2003
  2. James FitzGerald
    Replies:
    2
    Views:
    341
    James FitzGerald
    Nov 25, 2004
  3. Ben

    Strings, Strings and Damned Strings

    Ben, Jun 22, 2006, in forum: C Programming
    Replies:
    14
    Views:
    740
    Malcolm
    Jun 24, 2006
  4. nass
    Replies:
    1
    Views:
    334
    mlimber
    Oct 5, 2006
  5. Wybo Dekker
    Replies:
    1
    Views:
    175
    Charles Steinman
    Jul 23, 2005
Loading...

Share This Page