Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

compiler switches in multitasking environment

Status
Not open for further replies.

dennisparker

Programmer
Jul 1, 2003
1
US
I have developed a control system for an automatic machine that bases motion on open loop stepper systems. The controller is a pc-104 card running a pentium class processer with an embedded multi-threaded DOS environment.

It is my understanding that MSC makes an assumption that the DS register is always loaded with a pointer to the data segment, which is the same as the stack segment. This makes it impossible for allocated threads to refer to global data.

I have read that it is possible to turn this assumption off with the right compiler switch. Does anyone know what that switch is?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top