Subj : Re: Please Help! To : borland.public.cpp.borlandcpp From : "Tim Jackson" Date : Tue Aug 19 2003 12:46 pm I think you need to be a bit more explicit about what you are trying to do. It is the function of a C compiler to convert C language statements into machine code. Anything which does this conversion is by definition a C compiler. For example if you convert the code by hand then -you- are being a C compiler. So it is impossible by definition to convert it without a C compiler and your question is self-contradictory. So. Do you want to a) Write your own C/C++ compiler? b) See the machine code that the BC++ compiler generates? c) Get hold of an open-source C/C++ compiler (one that you can perhaps modify and recompile)? d) Compile these statements into a freestanding binary module that you can export to some other system.? e) Convert these statements into machine code for a different target machine (known as cross-compiling)? f) Do something not mentioned here? Please specify. Of course if the answer is (c) then you don't really need Borland C++ of any version because the compiler in question would be able to recompile itself, and so that would make the question somewhat off-topic for this newsgroup. Tim Jackson "Henry" wrote in message news:3f416d6a@newsgroups.borland.com... > Hi! > My problem is somewhat different. > Consider the code below: > int a ,b,c; > c = a + b; > cout< > Is there any way or program to convert these exrpressions into > binary/machine code (remember I am not talking of object code, .EXE files or > library (.lib files)). > > I mean to say that how can I convert C/C++ code to machine code without > using any compiler/assembler etc. > i.e. through a C/C++ program only. > > I use Borland C++ 3.0 as well as Borland C++ 5.0, but don't bother about the > version, I need the logic to do so. > If you want you can give me the code for any of the versions. > > Thanks! > Henry > > > > .