Valhalla Legends Forums Archive | C/C++ Programming | DLLs

AuthorMessageTime
UserLoser.
How would I not do the following:

Base my DLL at 0x10000000 because too many other DLLs are based there by default so you're virtually guaranteed a required relocation.
And turn off frame pointer generation, and enable optimizations?
November 10, 2003, 3:57 AM
Tuberload
The optimizations is going to be somewhere in the compiler options. Should be a checkbox or something.
November 10, 2003, 4:13 AM
K
If you're using visual studio, you can go to
Project Properties -> C/C++ -> Optimization.
Omit Frame Pointers -> Yes /Oy
Global Optimizations -> Yes /Og

The base address is editable under
Project Properties -> Linker -> Advanced. (/BASE:[address|filename, key])
November 10, 2003, 4:19 AM
UserLoser.
Thanks ;)
November 10, 2003, 3:05 PM
iago
[quote author=K link=board=30;threadid=3518;start=0#msg28430 date=1068437974]
The base address is editable under
Project Properties -> Linker -> Advanced. (/BASE:[address|filename, key])
[/quote]

Somewhere under Linker there's an editbox for that..
November 10, 2003, 3:53 PM

Search