Advertisement

Compilers...

Started by January 06, 2003 11:17 AM
0 comments, last by cippyboy 22 years, 1 month ago
Until recently I ran with Dev-C++ 4 and I have some bugs on WinXP because of that(Q1:Could a pointer be my problem ?)and i`ve tryed MSVC++ 5...but the stl vector is not running good...gives some errors and i`ve tryed the Nehe SDK.. at each lesson they wore 26 errors and 2 warnings... On Dev-C++ my project compiles flawlesly but on MSVC++ 5 I have 174 erros and 22 warnings...(Q2:stl vetor a pain the ass?) Q3:What are you guys using ? Q4:Which is the best thin to use ? Q5:How can someone make a compiler(Just wondering) and how does it functions(Like I give it a string and..bynary code pops...)

Relative Games - My apps

Q1: only you can answer that with what you've provided here

Q2: STL vector is a life-saver, you might need to use std::vector or using namespace std if your compiler can't access it (the headers with the Dev-C++ 4 don't have the STL classes in the std namespace, but VC++ does).

Q3: mingw32 (gcc 3.something) and VC++6.0

Q4: could easily start a flame war, try hitting the web for different opinions, 'facts' and comparisons.

Q5: with a lot of blood, sweat and coke. Basically a compiler translates programs from one language to another. A C compiler will take each character in a file in turn and group them into tokens (usually via a Finite State Machine). The tokens form patterns which are then matched against a grammar, which is augmented with information about what program code to generate for each pattern. Obviously this is *extremely* simplified, there are far better explanations and descriptions on the web.

[edited by - JuNC on January 7, 2003 2:38:05 PM]

This topic is closed to new replies.

Advertisement