Starting my compiler from an IDE app
Hi,
I am in the process of creating a java like language for a school research project. I am going to be creating an IDE to code in but i need to know how to initiate my compiler .exe from the IDE in both windows, and linux if possible. I also need to be able to pass comandline arguments like filename, dependancies, outputfile, ect.
Any information would be helpful
Kid
Um, what IDE's?
EDIT: Like this? (Though obviously modified for blah...)
Wow.
[edited by - kordova on April 30, 2003 10:15:31 PM]
EDIT: Like this? (Though obviously modified for blah...)
Wow.
[edited by - kordova on April 30, 2003 10:15:31 PM]
Im making my own IDE. I just need to know how to run my compiler application which is a comandline app, from the IDE program. I know VS does this, and all the GNC IDEs do it as well
Under Windows, you''ll be calling ShellExecute. Er, assuming you''re writing it in C/C++.
How appropriate. You fight like a cow.
How appropriate. You fight like a cow.
quote:Original post by thekid
Hi,
I am in the process of creating a java like language for a school research project. I am going to be creating an IDE to code in but i need to know how to initiate my compiler .exe from the IDE in both windows, and linux if possible. I also need to be able to pass comandline arguments like filename, dependancies, outputfile, ect.
Any information would be helpful
Kid
I found this site:
http://graphics.lcs.mit.edu/~decoret/ARGSTREAM/
about parsing the command line. It should enable you recieve command line parameters for you compiler.
hope this helps
I don''t know about windows but under linux there is popen and pclose :
For more info you can allways look at the man page.
#include <stdio.h>// use this to open a pipe to the compiler// read_or_write is either "r" or "w"// you get back a FILE* which you can use to read the compiler output, or// write to the compilers inputFILE* popen(const char* commandline,const char* read_or_write);// close the pipeint pclose(FILE* pipe);
For more info you can allways look at the man page.
I am in the process of solving the meaning of life, can someone please tell me how to add two numbers?
you could also have the IDE create a makefile (or some version of a makefile specifically geared to your compiler), and have the compiler app read it when it is started.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement