Board index » cppbuilder » dos project compile with memory medium and not with memory large

dos project compile with memory medium and not with memory large


2005-03-18 05:00:40 PM
cppbuilder34
Hello:
I've just uploaded to "borland.public.attachments" a dos project who compile
with -mm option and not with -ml.
Can someone help?
thank you
Morosh
 
 

Re:dos project compile with memory medium and not with memory large

Here are some things I see in what you posted:
The compiler generated make file compiles for large memory model but
links for medium memory model.
- Elements of both medium and large models are used
It specifies -ml, the option for large mode in the file
used to configure the compiler. Medium model would be -mm
This is near the end of the file, below the comment
"Compiler configuration file"
The linking command uses medium model libraries and startup code
This is below the call to the linker, the line with $(TLINK) on it
c0m.obj, mathm.lib and cm.lib are used.
The hand written make file, comptad2.mak, uses all large model, -ml,
c0l.obj and cl.lib It does not use the bids library and uses floating
point emulation (emu.lib instead of fp87.lib) which is what one wants
for debugging.
. Ed
Quote
Morosh wrote in message
news: XXXX@XXXXX.COM ...

Hello:
I've just uploaded to "borland.public.attachments" a dos project
who compile with -mm option and not with -ml.
Can someone help?
 

Re:dos project compile with memory medium and not with memory large

The reason you're having trouble is that you have set the compiler
memory model to large but the node attribute is set to medium.
To fix this problem, right-click on the EXE target node, select "Local
options | 16-bit Compiler | Memory Model", click on any option in the
"Mixed Model Override", then uncheck "Locally overridden". Press OK.
Next, right-click on the EXE target node, select "TargetExpert", and
change your target model to "Large". That will solve your problem.
--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
www.datadevelopment.com/
NEW WHITEPAPERS
Team Development with JBuilder and Borland Enterprise Server
Securing Borland Enterprise Server
www.datadevelopment.com/papers/index.html
Please see Borland's newsgroup guidelines at
info.borland.com/newsgroups/guide.html
 

{smallsort}

Re:dos project compile with memory medium and not with memory large

Kevin Dean [TeamB] < XXXX@XXXXX.COM >wrote in message
Quote
The reason you're having trouble is that you have set the compiler
memory model to large but the node attribute is set to medium.

To fix this problem, right-click on the EXE target node, select "Local
options | 16-bit Compiler | Memory Model", click on any option in the
"Mixed Model Override", then uncheck "Locally overridden". Press OK.

Next, right-click on the EXE target node, select "TargetExpert", and
change your target model to "Large". That will solve your problem.

--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
www.datadevelopment.com/

NEW WHITEPAPERS
Team Development with JBuilder and Borland Enterprise Server
Securing Borland Enterprise Server
www.datadevelopment.com/papers/index.html

Please see Borland's newsgroup guidelines at
info.borland.com/newsgroups/guide.html
thanks very much!!!
now it's working
Maurice