473,320 Members | 2,029 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,320 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 1890
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.