Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > MSVC 1.5 - how do I force strings into _CODE segment

Reply
Thread Tools

MSVC 1.5 - how do I force strings into _CODE segment

 
 
Ed
Guest
Posts: n/a
 
      11-29-2006
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

 
Reply With Quote
 
 
 
 
santosh
Guest
Posts: n/a
 
      11-29-2006
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Nike air force one, air force 1, air force one low cut, air force one abdul_razak@indiatimes.com Digital Photography 2 12-31-2008 04:29 PM
Nike Air Force Ones,Air Force One Air Force One-1,25th anniversary lky52112@gmail.com Digital Photography 0 01-15-2008 04:46 PM
Nike Air Force Ones,Air Force One Air Force One-1,25th anniversary lky52112@gmail.com Digital Photography 0 01-15-2008 04:34 PM
MSVC15 - forcing vtables into the _TEXT or _CODE segment James FitzGerald C++ 2 11-25-2004 05:58 AM



Advertisments