Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Byte alignment

Status
Not open for further replies.

drdirty

Programmer
Nov 1, 2000
1
US
I am having some problems with byte alignment. I need to use the pragma pack(1) preprocessor directive only in some
areas of code (or perhaps in an entire project) where it is crucial to have single byte alignment, but not in others areas of the main application.
It is possible to set this at the project (dsp, dsw) level.
Should I simply use pragma locally, or use it on the entire
project. Note that other code will be making calls into the lib in question.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top