GCC is the GNU Compiler Collection. It's the de facto standard C compiler on Linux and supports many other languages and platforms as well.
2
votes
8answers
3k views
How to specify enum size in GCC?
I want to specify an enumeration size of 64 bits for an enumeration. How is this possible through GCC? The code does not need to be 'portable' in that I am only interested in making the code work on ...
1
vote
1answer
36 views
Keep an exported function from being deleted by the linker
I have a program that statically links with several c++ libraries that export a few functions:
extern "C"
{
KSrvRequestHandler* CreateRequestHandler( const char* name );
bool ...
0
votes
1answer
23 views
How to get Cuda to use gcc 4.6
I am trying to install Cuda on my machine and as usual it causes problem with gcc 4.7 when trying to run the installer.
I have now installed gcc 4-6 which should work and I am now thinking about the ...
0
votes
3answers
47 views
GCC transparent union
So I have a union defined like:
typedef union
{
uint8_t *b1;
uint16_t *b2;
uint32_t *b3;
uint64_t *b4;
} buffer_u __attribute__((__transparent_union__));
And a functions defined like:
...
1
vote
3answers
120 views
Buffer overflows on 64 bit
I am trying to do some experiments with buffer overflows for fun. I was reading on this forum on the topic, and tried to write my own little code.
So what I did is a small "C" program, which takes ...
1
vote
2answers
3k views
'configure' failing with Android NDK standalone toolchain
I'm trying to build something with the Android NDK standalone compiler toolchain, but I'm getting this error:
Updating bundled third-party dependencies...
bash -c 'mkdir -p ...
-2
votes
1answer
36 views
GCC: Switch to make Application Quit Console
I have a GUI application and I use GCC in Ubuntu Linux to build it. The application builds correctly and runs correctly. The problem is, when I Quit the Application via Menu it Exits but hangs on ...
1
vote
0answers
42 views
gcc-arm Compiler produce different object file for the same source file
Using the GCC compiler for ARM (windows) :
arm-none-eabi-gcc.exe (Sourcery CodeBench Lite 2012.09-63) 4.7.2 version
I have got different object file produced every ~5 times i compiled the same ...
1
vote
1answer
29 views
Compiling C Project error for “-std=gnu90”
I'm trying to cross compile from Windows 7 using Cywin, GCC, Eclipse, and OpenOCD to load the program onto an ARM microcontroller. I keep getting issues though, when trying to build my project, ...
3
votes
1answer
67 views
Importing a symbol from C file into linker script
I have created a section called .co_stack in my C file and have an array called pulStack to define the area.
#define STACK_SIZE 0x00003000 /*!< Stack size (in Words) */
...
6
votes
3answers
537 views
Cross-compiling open-source c library for iOS and XCode 4.3
I'd like to use the excellent stringencoders library in an iOS application. It's a fairly typical c library, with a configure script generated by autoconf and a makefile.
What I'd like to do is ...
-1
votes
2answers
36 views
How much optimized is Vala generated C code over hand written C code?
Is Vala generated code are optimized like normal hand-written C code? Is there any performance overhead in using GObject system over not using it?
NOTE: In my next C project I am researching over to ...
1
vote
1answer
76 views
G++ name mangling of global const variables
Can someone help me understanding the gcc name mangling conventions?
Consider the following test code
#include <stdio.h>
const int x = 42;
int y = 42;
int main( int argc, const char* argv[] ...
0
votes
1answer
12 views
It's possible to have a more modern compiler on iOS?
For those who did the jailbreak on their iOS devices, there's the possibility to have the gcc compiler directly on iOS, allowing the direct build of utilities and apps, without losing one's head by ...
0
votes
4answers
2k views
How can I use gcc by installing Cygwin on a Windows machine?
i have installed the cygwin package for my netbeans IDE. I can use that in netBeans project. But now I want to use the gcc compiler from a cmd prompt. How can I do that?
In Linux we open a terminal ...