compiler-construction Questions

8

Solved

Hi i have been using an IDE but now I need to run and compile from the command line. The problem is that I have multiple packages and I have tried to find the answer but nothing has worked. So ...
Fleshpots asked 18/8, 2010 at 13:30

6

Solved

Is there a way to force the compiler to restrict the usage of a custom attribute to be used only on specific property types like int, short, string (all the primitive types)? similar to the Attribu...
Assembly asked 5/12, 2011 at 8:13

3

Solved

I made the mistake of thinking that the C++ program that I coded with VS 2012 would work on a computer running windows 95. Now I know why it doesn't work. So I took a look at other free compilers ...

4

Solved

I was just thinking, how do machines interpreter binary code? All I understand is your code get's turned into 1 and 0's so the machine can understand them, but how do they do that? Is it just a nor...

11

Solved

I'd like to implement an "assert" that prevents compilation, rather than failing at runtime, in the error case. I currently have one defined like this, which works great, but which increases the s...
Suds asked 30/4, 2009 at 14:37

2

I have to modify around 1 000 of typescript files in a specific way: I need to replace all StringLiteral and JsxText tokens with a CallExpression to a translation function for internationalization ...

4

Solved

Much has been written over the years on implementing parsers, but the C preprocessor is not quite the same as any of the stages of a typical parser, and implementation thereof doubtless has its sha...
Monster asked 9/9, 2011 at 11:46

2

Solved

I'm trying to assess the performance differences between OpenCL for AMD and Nvidia GPUs. I have a kernel which performs matrix-vector multiplication. I'm running the kernel on two different systems...

5

Solved

I'm currently reading "Expert C Programming - Deep C Secrets", and just came across this: The storage class specifier auto is never needed. It is mostly meaningful to a compiler-writer m...
Eudora asked 21/6, 2023 at 21:12

14

Solved

In Compiler Construction by Aho Ullman and Sethi, it is given that the input string of characters of the source program are divided into sequence of characters that have a logical meaning, and are ...
Feder asked 19/2, 2013 at 10:2

7

Solved

Please ignore code readability in this question. In terms of performance, should the following code be written like this: int maxResults = criteria.MaxResults; if (maxResults > 0) { while (acco...
Probity asked 29/1, 2010 at 14:33

3

Solved

Both of them pretty much do the same thing. Identify that the method is hot and compile it instead of interpreting. With OSR, you just move to the compiled version right after it gets compiled, unl...
Hadlock asked 2/2, 2012 at 0:29

8

Solved

I've just moved over a Visual Studio (C++) solution over to another computer, setup all the directories and settings as far as I can see, and did a clean/rebuild on the solution. I get the error ab...
Dishcloth asked 2/11, 2010 at 18:2

4

Solved

I am not sure how appropriate is this question, but - I am curious about how the compiler sets memory aside for an object (allocation of memory) even before it is constructed (before even the cons...
Invest asked 10/9, 2011 at 13:31

3

I have an APK file name : Splash.apk. First i decode it using apktool apk d Splash.apk Then i edit Manifest, XML. Finally I export project to APK file name : EditedSpash.apk. apk b Splash Whe...
Grahamgrahame asked 21/2, 2013 at 3:43

1

Solved

Can a parser, generated by tree-sitter, be used both for both syntax highlighting and compiler itself? If not - why? It would be counterproductive to write 2 different parsers and maintain them. No...

2

Solved

Recently started learning Kotlin. I noticed an interesting behaviour when declaring the main function in Kotlin. It uses a @JvmStatic annotation even when in an object class. I looked around and di...
Cranach asked 19/5, 2023 at 3:47

6

Solved

I was given the source code to modify an MS-DOS program built back in 1992. I have the EXE file and it runs fine, but I need to modify the source code. The source code needs the below headers to co...
Lark asked 13/10, 2011 at 2:48

4

I'm trying out Android Studio. Upon creating a new project and adding a default onSaveInstanceState method to the create MyActivity class, when I try to commit the code to Git, I get a strange erro...

4

Solved

Im writing an compiler in Python, using llvmlite to generate intermediate LLVM IR. Lexer and parser are finished, now im doing code generation. The compiler will be dynamic and weakly typed, so i w...
Fuddyduddy asked 16/4, 2016 at 0:13

2

Solved

When cross compiling tools, you will often have to provide "a target triplet". Example given i686-pc-linux-gnu arm-none-linux-gnueabi powerpc-unknown-linux and so on... These triplets, which a...
Depreciatory asked 11/12, 2012 at 11:54

2

Solved

I would like to enable NEON vectorization on my ARM cortex-a9, but I get this output at compile: "not vectorized: relevant stmt not supported: D.14140_82 = D.14143_77 * D.14141_81" Here is my loo...
Cavein asked 5/3, 2013 at 13:50

3

Solved

In Rust, Option is defined as: pub enum Option<T> { None, Some(T), } Used like so: fn may_return_none() -> Option<i32> { if is_full_moon { None } else { Some(1) } } fn ma...
Sterile asked 30/3, 2017 at 23:52

9

Solved

Quick question: what is the compiler flag to allow g++ to spawn multiple instances of itself in order to compile large projects quicker (for example 4 source files at a time for a multi-core CPU)? ...
Antifouling asked 5/1, 2009 at 22:21

3

I wrote a few own passes for llvm, in order to use them with clang. I integrated them in llvm (not dynamically loaded). They are even listed in the Optimizations available: section when I type: o...
Homoeroticism asked 17/4, 2014 at 10:34

© 2022 - 2025 — McMap. All rights reserved.