Subj : Re: Please Help! To : borland.public.cpp.borlandcpp From : "Ed Mulroy [TeamB]" Date : Tue Aug 19 2003 12:14 am There are two issues here. You show code that you wrote but you also show a call to a function which is in the library. The code you wrote can be converted to assembly language, but the function you call, in this case cout, is in the library and will not be converted. Assume that you have this in a source file called MyCode.CPP #include int main() { int a, b, c; a = 5; b = 6; c = a + b; cout << c; return 0; } You could then create a MyCode.ASM file containing the assembly code with a Borland C++ 5 command such as the following: bcc32 -WC -S MyCode.CPP where the -WC says that it is a console mode (text mode) program. In the MyCode.ASM file that is created is an external declaration for cout. That function is in the runtime library. If you did not want to use the runtime library then you would need to write your own function to write to the screen. .. Ed > 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. .