473,385 Members | 2,069 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

compiler design

4
hi !i m doing a project on compiler design in c#.net can anyone help me on this please.
May 7 '09 #1
5 1892
JosAH
11,448 Expert 8TB
@giri87
Compiler design is composed of many aspects; what part are you having trouble with? Did you read your literature, e.g. the "Dragon Book"?

kind regards,

Jos
May 7 '09 #2
giri87
4
sir is there anyway to convert a .c file into a exe file without using a compiler.my project is to provide a intelligent editor for c and to compile the edited source code to its executable without using a compiler.

thank you,
girish
May 17 '09 #3
JosAH
11,448 Expert 8TB
@giri87
The process of converting a source .c file to an executable .exe file involves compilation of the source text and linking the resulting object code. You need a compiler for that, one way or another and you need a linker. Do you want to write both of them while quite a bunch of them are available already? Think.

kind regards,

Jos
May 17 '09 #4
giri87
4
yes sir,i got to do both.i m doing my project in c#.net.i found source code for compiler for linux but not windows.
sir,is there no mechanism to convert a c source code to a exe file directly ?

thank you,
girish
May 17 '09 #5
JosAH
11,448 Expert 8TB
@giri87
You do have to compile the source code; there is no shortcut. There are quite some editors that can call an external program with the current text as its input; read your editor's manuals. The idea is to call a compiler on the current text in the editor and store the compiled code somewhere. Vi and emacs can do that, maybe your favorite editor can do it too.

Writing a full blown compiler takes quite some time. People have worked for years on their compiler ...

kind regards,

Jos
May 17 '09 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

13
by: Bryan Parkoff | last post by:
You may notice that switch (...) is much faster than function that can gain a big improved performance because it only use JMP instruction however function is required to use CALL, PUSH, and POP...
12
by: Unbiased_me | last post by:
Hi There I recently read in book that the C compiler is written in C. I unable to comprehend the concept behind this. How is the compiler design started...Where dodoes one start. I tried...
15
by: Anton Gavrilov | last post by:
Hi all, I seek your advice on where to start if I want to write a compiler for a toy C-like language I invented (or, rather, am in the process of inventing). Yes, yes, I know I'm crazy and the...
29
by: junky_fellow | last post by:
Consider the following piece of code: struct junk { int i_val; int i_val1; char c_val; }; int main(void) {
19
by: Martin Oddman | last post by:
Hi, I have a compiling problem. Please take a look at the code below. I have an application that is built upon three tiers: one data tier (Foo.DataManager), one business tier (Foo.Kernel) and...
18
by: smnoff | last post by:
Ok, I am think I am a little more knowledgeable about C and pointers, ughh. And likewise, I want to fix C.....and not so much to make a C++ or Java or C# or even D like language. So, if I...
18
by: Guru Jois | last post by:
Hai, Can I get some docs or links to learn the C compiler internals from basic to advanced. It must contains good documentation of how compilers allocates memory to variables. Bye Guru Jois
35
by: =?Utf-8?B?UElFQkFMRA==?= | last post by:
I'd really like to be able to constrain a generic type to System.Enum or, better, enum. But of course that results in "Compiler Error CS0702". So far I've been checking the type parameter at...
1
by: vaib | last post by:
hi all , I am willing to write a compiler front-end for my semester project . I am studying compilers in my present semester and I am following the Dragon Book for the theory and Allen I....
3
by: vaib | last post by:
hi all , I am willing to write a compiler front-end for my semester project . I am studying compilers in my present semester and I am following the Dragon Book for the theory and Allen I....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.