Languages › Compilateur

Compilateur, Compiler

Fil des billets - Fil des commentaires

mercredi 9 avril 2014

Coliru - C++ online compiler - G++ Online

Coliru

jeudi 29 août 2013

C++ and Xcode 4.6 | Marshall's C++ Musings

C++ and Xcode 4.6 | Marshall's C++ Musings

How can I tell if I'm using libc++ ?

If you're writing cross-platform code, sometimes you need to know what standard library you are using. In theory, they should all offer equivalent functionality, but that's just theory. Sometimes you just need to know. The best way to check for libc is to look for the preprocessor symbol _LIBCPP_VERSION. If that's defined, then you're using libc++.

    #ifdef  _LIBCPP_VERSION
    //  libc   specific code here
    #else
    //  generic code here
    #endif

Note that this symbol is only defined after you include any of the libc++ header files. If you need a small header file to include just for this, you can do:

    #include <ciso646>

The header file "ciso646" is required by both the C++03 and C++11 standards, and defined to do nothing.

mardi 27 août 2013

TP CMake

mardi 23 avril 2013

Installing AVR GCC on OS X

Installing AVR GCC on OS X

samedi 19 janvier 2013

Oracle Solaris Studio

Oracle Solaris Studio

lundi 8 octobre 2012

GCC 4.1 Release Series %u2014 Changes, New Features, and Fixes - GNU Project - Free Software Foundation (FSF)

GCC 4.1 Release Series %u2014 Changes, New Features, and Fixes - GNU Project - Free Software Foundation (FSF)

Other significant improvements GCC can now emit code for protecting applications from stack-smashing attacks. The protection is realized by buffer overflow detection and reordering of stack variables to avoid pointer corruption. Some built-in functions have been fortified to protect them against various buffer overflow (and format string) vulnerabilities. Compared to the mudflap bounds checking feature, the safe builtins have far smaller overhead. This means that programs built using safe builtins should not experience any measurable slowdown.

Buffer overflow protection - Wikipedia, the free encyclopedia

GCC extension for protecting applications from stack-smashing attacks

gcc 3.4.4 support (22 August, 2005) eliminate the protection instrument from the function that defines buffers, but doesn't use them. fix buffer address corruptions in the case where multiple sub-blocks have buffers. gcc 4.1 stage2 incorporates "Reimplementation of IBM Pro Police Stack Detector." (17 July, 2005)

mardi 2 octobre 2012

Index of /enseignements/ti - Traitement d'image

Index of /enseignements/ti

vendredi 14 septembre 2012

Setting up Code::Blocks and MINGW, A Free C and C Compiler, on Windows - Cprogramming.com

Setting up Code::Blocks and MINGW, A Free C and C Compiler, on Windows - Cprogramming.com

lundi 10 septembre 2012

Optimize Options - Using the GNU Compiler Collection (GCC)

Optimize Options - Using the GNU Compiler Collection (GCC)

Les options de gcc et leurs effets

Les options de gcc et leurs effets

GCC Command-Line Options

GCC Command-Line Options

Link Options - Using the GNU Compiler Collection (GCC)

Link Options - Using the GNU Compiler Collection (GCC)

Map

ld(1): GNU linker - Linux man page

ld(1): GNU linker - Linux man page

mardi 22 mai 2012

CMake - Cross Platform Make

CMake - Cross Platform Make

jeudi 1 décembre 2011

# et ##

Les opérateurs du préprocesseur # et ## sont utilisés avec la macro #define.

# retourne son premier argument sous forme d'une chaine entre guillemets (””).
## permet de concaténer ce qui se trouve avant avec ce qui se trouve après.

Par exemple, la commande :

    #define to_string (s) # s

fera que le préprocesseur transformera la ligne suivante
    cout << to_string(Hello World!) << endl;
en
    cout << "Hello World!" << endl;


Voici un exemple d'utilisation de ##:

     #define concatene (x, y) x ## y
     ...
     int xy = 10;
     ...

Ce code permettra au préprocesseur de transformer :
     cout << concatene( x, y ) << endl;
en
     cout << xy << endl;

qui affichera, bien entendu, '10' sur la sortie standard.

jeudi 29 septembre 2011

Finding glibc and gcc Versions | The Linux Daily

Finding glibc and gcc Versions | The Linux Daily

Building Older GCC Versions on x86-64 Debian/Ubuntu � trevorpounds.com

Building Older GCC Versions on x86-64 Debian/Ubuntu � trevorpounds.com

mardi 14 décembre 2010

Programming and Web Design

Programming and Web Design

lundi 11 octobre 2010

Shared Libraries

Shared Libraries

mercredi 28 juillet 2010

Using the Free SDCC C Compiler to Develop Firmware for the DS89C430/450 Family of Microcontrollers - Maxim

Using the Free SDCC C Compiler to Develop Firmware for the DS89C430/450 Family of Microcontrollers - Maxim

Keyworks: compiler,assembler,microcontroller,c,develop,firmware

- page 1 de 4