Valhalla Legends Archive

Programming => General Programming => C/C++ Programming => Topic started by: UserLoser. on November 09, 2003, 09:57 PM

Title: DLLs
Post by: UserLoser. on November 09, 2003, 09:57 PM
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?
Title: Re:DLLs
Post by: Tuberload on November 09, 2003, 10:13 PM
The optimizations is going to be somewhere in the compiler options. Should be a checkbox or something.
Title: Re:DLLs
Post by: K on November 09, 2003, 10:19 PM
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])
Title: Re:DLLs
Post by: UserLoser. on November 10, 2003, 09:05 AM
Thanks ;)
Title: Re:DLLs
Post by: iago on November 10, 2003, 09:53 AM
Quote from: K on November 09, 2003, 10:19 PM
The base address is editable under
Project Properties -> Linker -> Advanced. (/BASE:[address|filename, key])

Somewhere under Linker there's an editbox for that..