mercredi 9 avril 2014
Coliru - C++ online compiler - G++ Online
Par sebastien galvagno le mercredi 9 avril 2014, 18:33
mercredi 9 avril 2014
Par sebastien galvagno le mercredi 9 avril 2014, 18:33
jeudi 29 août 2013
Par sebastien galvagno le jeudi 29 août 2013, 09:55
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.
samedi 19 janvier 2013
Par sebastien galvagno le samedi 19 janvier 2013, 16:53
lundi 8 octobre 2012
Par sebastien galvagno le lundi 8 octobre 2012, 15:12
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 attacksgcc 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
Par sebastien galvagno le mardi 2 octobre 2012, 09:39
vendredi 14 septembre 2012
Par sebastien galvagno le vendredi 14 septembre 2012, 13:13
lundi 10 septembre 2012
Par sebastien galvagno le lundi 10 septembre 2012, 08:16
Par sebastien galvagno le lundi 10 septembre 2012, 08:14
Par sebastien galvagno le lundi 10 septembre 2012, 08:13
Par sebastien galvagno le lundi 10 septembre 2012, 08:12
Par sebastien galvagno le lundi 10 septembre 2012, 08:11
jeudi 1 décembre 2011
Par sebastien galvagno le jeudi 1 décembre 2011, 15:32
#define to_string (s) # s
cout << to_string(Hello World!) << endl;
en cout << "Hello World!" << endl;
#define concatene (x, y) x ## y
...
int xy = 10;
...
cout << concatene( x, y ) << endl;
en cout << xy << endl;
jeudi 29 septembre 2011
Par sebastien galvagno le jeudi 29 septembre 2011, 14:04
Par sebastien galvagno le jeudi 29 septembre 2011, 14:04
mercredi 28 juillet 2010
Par adminblog le mercredi 28 juillet 2010, 12:53
Keyworks: compiler,assembler,microcontroller,c,develop,firmware
« billets précédents - page 1 de 4