33 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
0
answers
33
views
Which section of the modern compiled code controls the exit of a c program?
So, In the binary files of C program compiled using old gcc versions like 3.3.6 there is a section like .dtors but there is nothing like that in the binary files of C program compiled using new gcc ...
0
votes
1
answer
377
views
Trying to validate the complete loading of a page in selenium python through a VM
I am trying to run a simple selenium automation script (which just loads up google ,searches for youtube and hits the search button) through a virtual machine.So when i set up the options/parameters ...
0
votes
1
answer
552
views
Enabling long long in C89 at GCC 3.2, 4.4 and 5.4
I'm working in C89 in quite a restricted environment. I am required to write for a compiler based on GCC 4.4, but my code must also pass tests compiled with GCC 3.2. Our everyday development compiler ...
0
votes
1
answer
78
views
How to fix "Section .vectors overlaps section .data " | Adding ATmega1281 Support to Compiler
So, I was working on a project to add ATmega1281 architecture support to my Toolchain.
I was having avr-gcc-v3.3, avr-binutils-2.13.1, and avr-libc-cvs2003.
I have added the ATmega1281 support to ...
1
vote
0
answers
77
views
Found some old code using __single_client_alloc - how can I revive it?
I found an old package online that I'd like to use. One of the header files includes the following lines:
#include "gcc_version.h"
#if GCC_VERSION>=3002
#define malloc_alloc __single_client_alloc
...
2
votes
0
answers
106
views
"undefined reference to _spill" : What is _spill and why does gcc want to access it?
I'm developing on a custom embedded platform with a custom version of gcc, which is based on gcc-2.8.0 (egcs-2.91.02). Yes, it's old. It's for a CoolRISC C816 core.
I face a strange error sometimes, ...
Tim's user avatar
- 1,933
0
votes
0
answers
90
views
Error when assembling for AT91SAM9261EK
I am trying to compile an assembly program using the keil uVision platform. The program issupposed to run on an AT91SAM9261EK (I have modified the settings as intended) but I get the following error.
...
2
votes
3
answers
350
views
Having static const variables with GCC 3.3 similar to GCC 3.4
When using g++ 3.4.6 (with ld 2.15.92.0.2), I can write:
class ConstantContainer {
public:
static const uint16_t MyConstant1 = UINT16_C(0x4321);
static const uint32_t MyConstant2 = UINT32_C(...
23
votes
5
answers
7k
views
Strange behavior when casting an int to float in C
I have a doubt concerning the output of the following C program. I tried to compile it using both Visual C++ 6.0 and MinGW32 (gcc 3.4.2).
#include <stdio.h>
int main() {
int x = 2147483647;...
0
votes
1
answer
2k
views
How does hash_set in C++ work?
I don't know how to use hash_set in C++. I'm incredibly new to this language so I don't understand how to do a lot of things. How do I use the SGI hash_set extension so the compiler finally compiles ...
10
votes
1
answer
6k
views
Error compiling GCC 3.4.6 in Ubuntu 14.04
I am trying to compile GCC 3.4.6 in Ubuntu 14.04 x64. It already has newer version of GCC-4.8.2.
I ran ./configure --prefix=/usr/local/gcc-3.4 and make.
I ended up in several errors for which I ...
1
vote
1
answer
487
views
Should gcc builtins always be resolved during the compilation step, or the linker step?
In running gcc 3.4.3 on a Solaris 5.11 box I see that builtin functions are left undefined during compilation, but are resolved against libgcc.a when the Solaris linker links against libgcc.a.
On gcc ...
0
votes
1
answer
3k
views
gcc-3.4 compilation error
I need gcc-3.4 for compilation f some software.
I installed on my Ubuntu-12.4 using following instruction :--
https://superuser.com/questions/351742/how-to-install-gcc-3-4-on-ubuntu-11-10
sudo dpkg -...
1
vote
1
answer
669
views
Compiling qemu neo with gcc3.4
I have realized that it's lots of trouble and pain to compile qemu with gcc4,
so I have installed gcc-3.2 toolchain in my linux box and now I'm compiling qemu,
These are the steps that I have followed ...
0
votes
3
answers
3k
views
gcc reports "will never be executed" about the line: while(fgets(line, MAX_LINE, stdin) != NULL)
I'm looking for an explanation why gcc are giving this warning for me.
I'm compiling with the gcc-3 on cygwin with the -Wunreachable-code flag, and the gcc says this warning for me:
main.c:223: ...