Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Does any one know "What is Memory Padding"

Status
Not open for further replies.

nvp

Member level 4
Joined
Sep 16, 2003
Messages
71
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Location
EARTH
Activity points
555
what is memory padding

Hello Friends,

Does any one know What is Memory Padding (in Structures). Under Linux operating system.

Regards
NVP
 

nvp said:
Hello Friends,

Does any one know What is Memory Padding (in Structures). Under Linux operating system.

Regards
NVP

This mean data alligment to CPU word boundary, adding (reserving some unused bytes) for structure elements (or all structure) alligment to word boundary in memmory.
Sometime if you do not need this element alligment, compillator have switches or "pragma" directives, for example "#pragma pack(1)"
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top