gcc
Is my MIPS compiler crazy, or am I crazy for choosing MIPS?
I am using a MIPS CPU (PIC32) in an embedded project, but I am starting to question my choice. I understand that a RISC CPU like MIPS will generate more instructions than one might expect, but I didn\[详细]
2023-04-11 09:28 分类:问答return from incompatible pointer type (const vs non-const). C/GCC
I have following piece of code: typedef uint8_t array_t[8]; static array_t _my_array; static const array_t * foo(void) {[详细]
2023-04-11 06:52 分类:问答Strange GCC Behaviour
Given the following C++ code: struct vertex_type { float x, y, z; //vertex_type() {} //vertex_type(float x, float y, float z) : x(x), y(y), z(z) {}[详细]
2023-04-11 06:20 分类:问答Error when compiling gcc 4.6.1 C++0x threading code on MacOSX Lion
When compiling the following code: #include <iostream> #include <thread> using namespace std;[详细]
2023-04-11 04:42 分类:问答Compile in 32 bits mode in x86_64 architecture
Im running on a machine with x86_64 architecture, with 32-bits compiled Perl 5.8.4. When I trying to install XML::LibXML i get following debug message:[详细]
2023-04-11 03:46 分类:问答Why does integer overflow on x86 with GCC cause an infinite loop?
The following code goes into an infinite loop on GCC: #include <iostream> using namespace std; int main(){[详细]
2023-04-11 02:54 分类:问答Pass single character to gcc as definition
I have version.c file with following line: const uint8_t ID_SoftwareId[]= { \'A\', \'B\', \'0\', \'1\', \'0\', \'\\0\'};[详细]
2023-04-11 02:29 分类:问答Generating sound of a particular frequency using gcc in ubuntu?
How can I generate sound of a particular frequency in C/C++ . I run Ubuntu 10.04 and use gcc. There is a void sound(int frequency) fun开发者_JS百科ction on TurboC for Windows. Is there an equivalent f[详细]
2023-04-11 01:08 分类:问答How do I imitate the Microsoft version of __FUNCTION__ using gcc?
When I use the __FUNCTION__ macro/variable to print out debugging information, there seems to be a difference in what it outputs when using the Microsoft C++ compiler and gcc. For example, using the f[详细]
2023-04-10 20:32 分类:问答GCC alias to function outside of translation unit -AKA- is this even the right tool for the job?
I\'m working with FreeRTOS on an STM32 (Cortex-M3), a开发者_如何学运维nd using the CMSIS library from ST to bootstrap everything.[详细]
2023-04-10 20:28 分类:问答