intermediate-code
Generating intermediate code in a compiler. Is an AST or parse tree always necessary when dealing with conditionals?
I\'m taking a compiler-design class where we have to implement our own compiler (using flex and bison). I have had experience in parsing (writing EBNF\'s and recursive-descent parsers), but this is my[详细]
2023-02-17 23:41 分类:问答Using a pre-parsed protocol definition in a script and keeping it up-to-date
For my work, I sometimes have to deal with logfiles from a binary protocol (the logfiles contain hexdumps of the messages). I want to write a Perl script that can interpret the binary data for me and[详细]
2023-01-22 05:48 分类:问答Generating intermediate .i files (preprocessed files) when compiling Ubuntu-8.04
I\'m building ubuntu-8.04 with gcc 3.4 and I need to generate the .i files, which are the output of the gcc preprocessor. I have tried adding the --save-temps flag but this only generates the .i files[详细]
2023-01-13 17:51 分类:问答RAII and C++ STL
I have a case where I wish to store a list of resources in a std::vector. As I see it, my option开发者_如何学JAVAs are as follows:[详细]
2022-12-22 04:02 分类:问答