• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

compile c and cpp program from java code

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Requirement:
Our Program should

be able to compile source codes in at least three different kinds of programming languages (C, CPP, Java, .net) and provide some errors while compiling if there is any error.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So your "program" is a cross-compiler? What do you mean by "call" in the subject of your post?
 
t sathya narayana
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:So your "program" is a cross-compiler? What do you mean by "call" in the subject of your post?


my program is like compiler to show some errors if there is?
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK. So what is your exact question?
 
t sathya narayana
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:OK. So what is your exact question?



our program should be able to compile at least 3 programming languages.
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's quite a task! So what do you have so far, and where are you stuck making progress?
 
t sathya narayana
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:That's quite a task! So what do you have so far, and where are you stuck making progress?


first of all i dn't know how to start and which concept here i need to use.
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you familiar with compiler technology? Lexers, parsers, ASTs, code generation, etc.? If not, start by reading something like https://en.wikipedia.org/wiki/Compilers:_Principles,_Techniques,_and_Tools; that should give you some grounding so you know what you're getting into. http://www.ethoberon.ethz.ch/WirthPubl/CBEAll.pdf is a somewhat shorter starting point.

Would this tool also generate actual code? Or should it just point out the syntax errors? Generating code adds a bunch of complexity; creating ready-to-run executables even more so. If that is part of it, I'd estimate that you have no chance of finishing within the next 12 months. If not, you may be able to get something useful out within a couple of months.
 
reply
    Bookmark Topic Watch Topic
  • New Topic