• Welcome to Valhalla Legends Archive.
 

DLLs

Started by UserLoser., November 09, 2003, 09:57 PM

Previous topic - Next topic

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?

Tuberload

The optimizations is going to be somewhere in the compiler options. Should be a checkbox or something.
Quote"Pray not for lighter burdens, but for stronger backs." -- Teddy Roosevelt
"Your forefathers have given you freedom, so good luck, see you around, hope you make it" -- Unknown

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])

UserLoser.


iago

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..
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*