compiler-construction
Define variable name except reservred worsd in a compiler
I am trying to do a lexer for a subset of Java with JavaCC. And a variable name can be any combination of letter, digit and _, beginning with a letter. I have only one problem, reserved words (such as[详细]
2023-04-11 16:47 分类:问答OpenGL compiling issues
I am using Visual Studio C++ and GLEW. The Project Settings are all set (Includes/Libs). MenuState.obj : error LNK2001: unresolved external symbol __imp____glewUseProgramObjectARB[详细]
2023-04-11 16:19 分类:问答C++ Semicolon after class, struct, enum,... useless but compilers still emit errors? [duplicate]
This question already has answers here: Closed 11 years ago. 开发者_JS百科 Possible Duplicate: In C++ classes, why the semi-colon after the closing brace[详细]
2023-04-11 12:02 分类:问答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 分类:问答Arithmetic vs logical shift operation in C++
I have some code that stuffs in parameters of various length (u8, u16, u32) into a u64 with the left shift operator.[详细]
2023-04-11 06:40 分类:问答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 分类:问答Difference in benchmark with different ARM cross compilers using hardware FP and soft VFP
I am currently using Open virtual platform that simulates an ARM processor and I\'m doing some benc开发者_如何学Chmarks on a simple task started by FreeRTOS with different cross compilers.[详细]
2023-04-11 05:32 分类:问答ANTLR reg. expression error
Can you see any error with the following regular expression? I am defining it in Antlr 3.4, but it accepts arguments like $one, £one although it shouldn\'t. However, it doesn\'t accept o£ne, 开发者_[详细]
2023-04-11 05:28 分类:问答Intermediate node as a root node for dominator tree
Can dominator trees be built with an intermediate node as the root node? ( Assuming that I am ignoring all the previous nodes in the original dominator tree while making 开发者_如何转开发this new tree[详细]
2023-04-11 01:28 分类:问答What are the pros and cons of specifying an include prefix in the source file versus in the search path parameter of the compiler?
When a C or C++ library comes with several headers, they are usually in a specific folder. For example, OpenCV provides cv.h and highgui.h in a opencv folder.[详细]
2023-04-10 21:21 分类:问答