Thread View: alt.msdos.programmer
3 messages
3 total messages
Started by Gerald Guillaume
Mon, 13 Dec 1999 00:00
how to write C code in an other segment than default one ?
Author: Gerald Guillaume
Date: Mon, 13 Dec 1999 00:00
Date: Mon, 13 Dec 1999 00:00
11 lines
1456 bytes
1456 bytes
i'm using borland turbo c on dos box. i would like to define a new code segment in a custom boot module (c0) that 's allow me to write C code in an other sement than the default code segment. But how can i specify in my c source code wich segment the compiler must use? i think a directive #?? can do that stuff .. but which's one on borland c compiler ? (or microsoft compiler) Thanks for all your good ideas .. GοΏ½rald.
how to write C code in an other segment than default one ?
Author: RemarQ User
Date: Mon, 13 Dec 1999 00:00
Date: Mon, 13 Dec 1999 00:00
11 lines
1375 bytes
1375 bytes
In accordance with the new courtesy policy requested by Steve Summit I will not say that this is off-topic and RTFF (acronym for read the Faq). Your question is platform-specific, and compiler ought to implement options like these with #pragmas. For which pragma to use you'll have to ask in a DOS ng. -**** Posted from RemarQ, http://www.remarq.com/?a ****- Search and Read Usenet Discussions in your Browser - FREE -
Re: how to write C code in an other segment than default one ?
Author: Michel Bardiaux
Date: Sun, 26 Dec 1999 00:00
Date: Sun, 26 Dec 1999 00:00
15 lines
1523 bytes
1523 bytes
Gerald Guillaume wrote:
>
> i'm using borland turbo c on dos box.
> i would like to define a new code segment in a custom boot module (c0)
> that 's allow me to write C code in an other sement than the default
> code segment.
> But how can i specify in my c source code wich segment the compiler must
> use?
> i think a directive #?? can do that stuff .. but which's one on borland
> c compiler ? (or microsoft compiler)
#pragma code_seg("MY_SEGMENT")
--
Michel Bardiaux
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads