A couple of years ago I started writing an interpreter for a little Domain Specific Language which included programmer-defined functions.
At first I implemented variable scope using a simple stack of symbol-tables. But now I want to move to proper lexical scoping (with the option of closures). Can anyone explain or point me at a good e...
When I try to compile Gforth 0.7.0, I get the following error:
$ ./configure
$ make
#compiling…
Undefined symbols:
"_main", referenced from:
start in crt1.10.6.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[3]: *** [gforth-ll] Error 1
./preforth -p ".:~+:." -e 's" mach16b.fs"' ./kernel/main.fs -e "save-cross...
This question and my answer below are mainly in response to an area of confusion in another question.
At the end of the answer, there are some issues WRT "volatile" and thread synchronisation that I'm not entirely confident about - I welcome comments and alternative answers. The point of the question primarily relates to CPU registers a...
As a general rule, are Java compilers localised? Are the compilers capable of emitting errors/warnings in languages besides English?
Information on any of the available Java compilers is welcome. In fact, historical or technical reasons why localisation is not considered for any language compilers is welcome.
NOTE: I am not asking this...
int bar = 2;
if (bar)
{
int bar;
}
Neither gcc or Clang manages to issue a warning (or error) for this, and the program crashes immediately on launch. Is there a good reason for this? It doesn't seem like it would be something hard to catch. It's the basics of block scoping: the nested scope inherits the names of the enclosing block...
It seems that parsing is a hard subject to learn. I was wondering what
would be recommended as the very easiest books on the subject. The
most basic, beginner, easiest books on parsing. Is there no parsing
for dummies?
...
Sometimes when i try to "build"/compile a downloaded source, i get following warning:
ld: warning: directory '/Volumes/Skiiing2/CD/ViewBased/Unknown Path/System/Library/Frameworks' following -F not found
Has anyone else seen this issue?
...
When I run gcc with the parameter -fdump-rtl-jump, I get a dump file with the name file.c.135r.jump, where I can read some information about the intermediate representation of the methods in my C or C++ file.
I just recently discovered, that the static methods of a project are missing in this dump file. Do you know, why they are missing...
Hi,
I would like to start contributing to Cappuccino -- mainly though, Objective-J. I have a good understanding of JavaScript, but not of language design/implementation. Is there a good book that covers this topic(s)?
Thanks.
...
I have a pointer of a structure type that I made. On program start it begins as NULL and I then malloc/realloc as I need to add/remove these structures and I was just gonna use my pointer to point at the first structure and move through it like an array.
When I malloc/realloc I always make the size of the "array"/area in memory one larg...
Hi. i have a little problem, and I am not sure if it's a compiler bug, or stupidity on my side.
I have this struct :
struct BulletFXData
{
int time_next_fx_counter;
int next_fx_steps;
Particle particles[2];//this is the interesting one
ParticleManager::ParticleId particle_id[2];
};
The member "Particle particles[2]" has a self-ma...
I get this error while trying to compile Asterisk 1.6.2 on Snow Leopard Server :
ld: symbol dyld_stub_binding_helper not defined
(usually in crt1.o/dylib1.o/bundle1.o)
Googling this I’ve found nothing enlightening so far.
This is what I am trying:
./configure --without-h323 --without-zaptel --host=x86_64-darwin
make menu...
I am actually on my project on compiler with SMP, and want to code with pthreads and heard about many parallel things open mpi and so on, So to start with how this thread is allocated to core while calling pthread,Is there any way to give threads to different cores by pthreads?
...
First of all, is this possible?
If so:
What challenges would I encounter in making an XCode imitation for iPhone/iPod development for Windows or Linux?
I was thinking about using gcc as the actual compiler for the objective-c and (VB).NET for the IDE. Will that work?
It doesn't need to compile to iPhone OS until it is to be tested o...
I have been looking through code for the last 3 days, and the original developer is defining Strings using the String class rather than the string class. So, when they've used the IsNullOrEmpty method, it's defined String.IsNullOrEmpty.
What I'd like to know is how is the compiler dealing with String.IsNullOrEmpty compared to string....
I've written a Scheme-ish language compiler/vm in JavaScript. http://github.com/z5h/zb-lisp
Dybvig's "Three Scheme Implementations" paper (available on my github) was hugely important in getting stuff like tail-call-optimization, call/cc and other things working.
I'm thinking about adding some type of macro support. And wondering if the...
Hello.
How do I control the "long strings" compiler option? I use Delphi 2007
...
I am trying to programmatically compile and run a java code snippet from inside an application of another language (C#). I have used the ikvm library to get java commands to run inside my C# code, and that part is working fine. Now I am trying to use this line that works in Java:
JavaCompiler compiler = ToolProvider.getSystemJavaCompi...
Using Visual Studio .NET 2003 C++ and the wininet.dll
Am seeing many C4995 warnings
More info
Any help is appreciated.
Thanks.
...
How do I exclude specific .dlls from Visual Studio 2003 C++ .NET?
During release build I get the following warnings.
Any help is appreciated.
Generating Code...
Linking...
LINK : warning LNK4089: all references to 'ADVAPI32.dll' discarded by /OPT:REF
LINK : warning LNK4089: all references to 'SHELL32.dll' discarded by /OPT:REF
LINK : wa...