This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Alignment of object code
- To: help-gcc at gnu dot org
- Subject: Alignment of object code
- From: clc5q at cobra dot cs dot Virginia dot EDU (Clark L. Coleman)
- Date: 22 Dec 1999 23:17:05 GMT
- Newsgroups: gnu.gcc.help
- Organization: University of Virginia Computer Science Department
- Xref: wodc7nx0 gnu.gcc.help:2273
As part of my research, I have a program that has code sections that
really need to be aligned on certain boundaries. Is there any way in
gcc, including the use of inline assembler, to cause the alignment of
code on really big boundaries, such as 4KB or 16KB?
I am considering writing an awk program to process the assmebly output
of the compiler and insert directives, but they are machine-dependent,
of course. I also know of another possible workaround, but I am hoping
for a straightforward #pragma or similar solution. Thanks for any
help.
(Yes, I really do need to do this; no, I really don't want to explain
why; yes, I really do know what I am doing, etc., etc., so please
don't ask or try to persuade me otherwise. Thanks.)