This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
How gcc handles alignment options
- From: Wei Hu <glegoo at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Sat, 15 Jan 2005 13:24:49 -0500
- Subject: How gcc handles alignment options
- Reply-to: Wei Hu <glegoo at gmail dot com>
Hi there,
We know that GCC has options that control optimization. What I tried
to do was to align functions with the -falign-functions option.
However I noticed that this option only controls the user code,
without affecting the library instructions.
Although finally I modified linker script to fulfill my goal. I still
want to know how gcc handles the alignment options?
I guess it does so by passing some option to ld.. But why doesn't the
option affect the libraries?
Thank you very much.