Click here to Skip to main content
15,919,132 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Packing sections down to byte alignment? Pin
Maxwell Chen7-Jan-08 19:24
Maxwell Chen7-Jan-08 19:24 
GeneralRe: Packing sections down to byte alignment? Pin
cmk8-Jan-08 3:26
cmk8-Jan-08 3:26 
GeneralRe: Packing sections down to byte alignment? Pin
bgrupczy8-Jan-08 4:58
professionalbgrupczy8-Jan-08 4:58 
GeneralRe: Packing sections down to byte alignment? Pin
bgrupczy8-Jan-08 7:30
professionalbgrupczy8-Jan-08 7:30 
GeneralRe: Packing sections down to byte alignment? Pin
cmk8-Jan-08 10:55
cmk8-Jan-08 10:55 
GeneralRe: Packing sections down to byte alignment? Pin
bgrupczy8-Jan-08 11:10
professionalbgrupczy8-Jan-08 11:10 
GeneralRe: Packing sections down to byte alignment? Pin
cmk8-Jan-08 11:17
cmk8-Jan-08 11:17 
GeneralRe: Packing sections down to byte alignment? Pin
bgrupczy9-Jan-08 6:19
professionalbgrupczy9-Jan-08 6:19 
Hmmm, I don't know what was wrong with my system. Today, those linker options are working with no compilation errors! And the memory is packed down to 8 byte alignment. This is MUCH better. The ported target code can handle this small fragmentation.

If I only use:
/SECTION:MY,R,W,ALIGN=1

Then I don't get the 8 byte packing. The two MY sections are always separated by 344 bytes.

But if I use this directive:
/SUBSYSTEM:NATIVE /DRIVER:WDM /SECTION:MY,R,W,ALIGN=1

Then I get the 8 byte alignment. But then the DLL won't execute in my test tool, MxVDev. That's my next hurtle.

Thanks for the help. I don't think there is a way to get them to pack any tighter.

Brad Grupczynski

GeneralConvert JIS to ASCII... Pin
Chris Losinger6-Jan-08 5:53
professionalChris Losinger6-Jan-08 5:53 
GeneralRe: Convert JIS to ASCII... Pin
Nemanja Trifunovic6-Jan-08 6:07
Nemanja Trifunovic6-Jan-08 6:07 
GeneralRe: Convert JIS to ASCII... Pin
Chris Losinger6-Jan-08 6:16
professionalChris Losinger6-Jan-08 6:16 
GeneralRe: Convert JIS to ASCII... Pin
Nemanja Trifunovic6-Jan-08 6:28
Nemanja Trifunovic6-Jan-08 6:28 
GeneralRe: Convert JIS to ASCII... Pin
Chris Losinger6-Jan-08 6:41
professionalChris Losinger6-Jan-08 6:41 
GeneralRe: Convert JIS to ASCII... Pin
Michael Dunn6-Jan-08 7:22
sitebuilderMichael Dunn6-Jan-08 7:22 
GeneralRe: Convert JIS to ASCII... Pin
Luc Pattyn6-Jan-08 7:37
sitebuilderLuc Pattyn6-Jan-08 7:37 
GeneralStrings from a c++ Dll to VB 6.0 and vice versa ! Pin
CrocodileBuck6-Jan-08 1:59
CrocodileBuck6-Jan-08 1:59 
QuestionRe: Strings from a c++ Dll to VB 6.0 and vice versa ! Pin
CPallini6-Jan-08 2:59
mveCPallini6-Jan-08 2:59 
GeneralRe: Strings from a c++ Dll to VB 6.0 and vice versa ! Pin
CrocodileBuck6-Jan-08 3:06
CrocodileBuck6-Jan-08 3:06 
GeneralRe: Strings from a c++ Dll to VB 6.0 and vice versa ! Pin
CPallini6-Jan-08 3:21
mveCPallini6-Jan-08 3:21 
GeneralRe: Strings from a c++ Dll to VB 6.0 and vice versa ! Pin
CrocodileBuck6-Jan-08 3:26
CrocodileBuck6-Jan-08 3:26 
GeneralRe: Strings from a c++ Dll to VB 6.0 and vice versa ! Pin
CPallini6-Jan-08 4:01
mveCPallini6-Jan-08 4:01 
GeneralRe: Strings from a c++ Dll to VB 6.0 and vice versa ! Pin
Nemanja Trifunovic6-Jan-08 6:09
Nemanja Trifunovic6-Jan-08 6:09 
GeneralRe: Strings from a c++ Dll to VB 6.0 and vice versa ! Pin
Rajesh R Subramanian6-Jan-08 6:18
professionalRajesh R Subramanian6-Jan-08 6:18 
GeneralRe: Strings from a c++ Dll to VB 6.0 and vice versa ! Pin
Nemanja Trifunovic6-Jan-08 6:30
Nemanja Trifunovic6-Jan-08 6:30 
GeneralRe: Strings from a c++ Dll to VB 6.0 and vice versa ! Pin
Michael Dunn6-Jan-08 7:30
sitebuilderMichael Dunn6-Jan-08 7:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.