compiler-construction Questions

11

Solved

When declaring an array in C like this: int array[10]; What is the initial value of the integers?? I'm getting different results with different compilers and I want to know if it has something t...
Peddling asked 12/9, 2009 at 3:45

2

Solved

I'm taking a course in compiler construction, and my current assignment is to write the lexer for the language we're implementing. I can't figure out how to satisfy the requirement that the lexer m...
Ilke asked 15/4, 2013 at 23:33

4

Solved

This seems to be one of those things that every talks about but no one defines...I can't seem to find any information on this topic. What is symbol resolution? This is the best thing I've found: ht...
Citadel asked 24/7, 2009 at 2:20

11

Solved

So something like: public static class StaticClass {} public class InstanceClass { static StaticClass StaticProperty {get;set;} public InstanceClass() { InstanceClass.StaticProperty = StaticC...
Spurn asked 4/3, 2011 at 1:7

9

Solved

I want to know the reason behind the design of restricting Abstract Methods in Non Abstract Class (in C#). I understand that the class instance won't have the definition and thus they wont be cal...
Dagda asked 25/9, 2012 at 10:29

10

Solved

In Stroustrup's The C++ Programming Language: Special Edition (3rd Ed), Stroustrup writes that the declaration and initialization of variables in the conditionals of control statements is not only ...

7

Solved

The following line <Component Guid='{THE_GUID}' Id='GlobalScopePackages' > Generates the following error: Error 4 ICE80: This 64BitComponent GlobalScopePackages uses 32BitDirectory blabla...
Monitor asked 18/12, 2009 at 15:58

3

Solved

In compiler construction, when you talk about tokens, is a token the same like a symbol / just another term for a symbol? After some research I think to understand, that a token is a symbol with a ...
Plucky asked 29/7, 2011 at 12:10

7

Solved

Will modern (2008/2010) incantations of Visual Studio or Visual C++ Express produce x86 MUL instructions (unsigned multiply) in the compiled code? I cannot seem to find or contrive an example where...
Benthos asked 28/10, 2010 at 2:49

11

Solved

After over a decade of C/C++ coding, I've noticed the following pattern - very good programmers tend to have detailed knowledge of the innards of the compiler. I'm a reasonably good program...
Engle asked 6/7, 2009 at 5:0

4

Solved

In TypeScript repository on GitHub and according to GitHub, the repository just included 100.0% TypeScript (.ts files) How does it work? and how TypeScript can compile itself to JavaScript just...
Malapert asked 30/8, 2016 at 19:27

9

Solved

Those familiar with x86 assembly programming are very used to the typical function prologue / epilogue: push ebp ; Save old frame pointer. mov ebp, esp ; Point frame pointer to top-of-stack. sub e...

4

Solved

According to this article gcc uses several intermediate formats before generating code. I read that the GIMPLE format uses three address code, which seems to be the easiest intermediate language to...
Morvin asked 1/2, 2012 at 16:26

1

Most of the standard library seems reasonably simple to implement either in terms of other parts of the library, in terms of OS sys-calls, or bare C++ code. A few more bits (e.g. <atomic>) pr...
Anabiosis asked 22/1 at 18:59

9

I'm new to this. Just wanted to ask how to compile a makefile. I am using MinGW compiler in C language. Do I have to save all my files in MinGW\bin? because right now my files are in a different di...
Haber asked 2/8, 2012 at 7:7

1

Intro. For my compilers course I have to translate some language to assembler. Now my code has a segfault, and I have hard time debugging it. Having an ability to watch variables would simplify the...
Condolent asked 10/11, 2018 at 19:29

12

Solved

I've heard of the idea of bootstrapping a language, that is, writing a compiler/interpreter for the language in itself. I was wondering how this could be accomplished and looked around a bit, and s...
Ogdoad asked 17/8, 2008 at 6:46

17

Solved

In what segment (.BSS, .DATA, other) of an executable file are static variables stored so that they don't have name collision? For example: foo.c: bar.c: static int foo = 1; static int foo = 10; ...
Dincolo asked 18/9, 2008 at 14:29

15

Solved

I want to programmatically edit python source code. Basically I want to read a .py file, generate the AST, and then write back the modified python source code (i.e. another .py file). There are wa...
Oxidimetry asked 20/4, 2009 at 14:51

3

Solved

While debugging some software I noticed INT3 instructions are inserted in between subroutines in many cases. I assume these are not technically inserted 'between' functions, but instead after t...
Nigro asked 19/10, 2016 at 9:40

4

I'm working on a problem (from Introduction to Automata Theory, Languages and Computer by Hopcroft, Motwani and Ullman) to write a regular expression that defines a language consisting of all strin...
Editheditha asked 17/4, 2010 at 9:53

5

Solved

A quick Google search of this issue shows it's common, I just can't for the life of me figure out the solution in my case. I have a straight forward install of wxWidgets 2.8.8 for Windows straight...
Coracorabel asked 25/9, 2008 at 15:33

14

Solved

I would like to distribute my .NET programs without the .NET framework. Is it possible to compile a .NET program to machine code?
Endophyte asked 26/9, 2008 at 17:18

8

Solved

I'd like to write a very small proof-of-concept JIT compiler for a toy language processor I've written (purely academic), but I'm having some trouble in the middle-altitudes of design. Conceptually...
Mendiola asked 6/2, 2011 at 6:32

3

Problem summary I'm trying to do an in-memory database with transactions. I'm reaching bottlenecks on compiler level, specifically inlining limit. I don't have much knowledge about compilers and I ...

© 2022 - 2024 — McMap. All rights reserved.