Description:
GNU C Compiler (gcc) user queries and answers.
|
|
|
Scenarios
|
| |
Hi, What could be the scenarios that will cause the below error - warning: dereferencing type-punned pointer will break strict-aliasing rules Thx in advans, Karthik Balaguru
|
|
How do we find out which object file is pulled in by the linker?
|
| |
Hi, Two object files foo_1.o and foo_2.o each have the same function a() defined and they have no other functions. foo_1.o is in a library specified prior to the library including foo_2.o The linker would pull in only foo_1.o in this case. What option can I give to gcc / ld to verify the above statement?... more »
|
|
ld.so?
|
| |
Hi all where is ld.so come from? I cannot find it in glibc. Please help thanks from Peter (cmk...@hotmail.com)
|
|
Wrong string address
|
| |
Hello. I have a problem with both GCC 3.4.6 and 4.4.2, both cross- compilers that target i586-elf. It's the fact that addresses of strings are not correct in the generated code. I'm trying to build this example of a simple operating system - [link] 1. Using MinGW to compile them generates this:... more »
|
|
Link to rom code
|
| |
Hi, I'm trying to link a program to some rom code. I have an elf file of the rom code (rom.elf) which if fully relocated. I use a linker script similar to this to link my application with the rom code: SECTIONS { .rommed 0xa00e0000 : { rom.elf } .text 0xa0000000 :... more »
|
|
Target list gcc
|
| |
Hello to all, I must build a cross-gcc for an ARM processor to run on PC-Windows. I think that I have all I need, cygwin, the gcc sources, I hope all the needed libraries .. Only one thing is missing to me : the target name. I have looked on the net, I did not find anywhere the convention for the target name.... more »
|
|
Error reports while compiling
|
| |
Hi! When compiler finds error in code it reports like this: <Full path to source file>:<Line number with error>:<description> Can gcc compiler report errors showing source's filename instead of full path to source? PS: I am using MinGW.
|
|
how to enable gcov for embed cross compilers?
|
| |
I've built gcc 4.3.3 as a cross compiler for the psp (mips allegrex) and out of the box it builds gcov. I can compile with -fprofile-arcs - ftest-coverage and it instruments the code and links to the libgcov.a without any erros, i put the generated elf into the psp and run it but no .gcda file is generated. I looked into what libgcov.a contains and... more »
|
|
help on - instruction scheduling passes in gcc
|
| |
Hi All, Our project is to optimize instruction scheduling in gcc by detecting structural hazards. We are trying to understand the two instruction scheduling passes(pass_sched and pass_sched2) and have the following doubts regarding the same. We are currently looking at schedule_insns() method and not selective scheduler.... more »
|
|
|