Combining different languages

This is a discussion on Combining different languages within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Ive never heard anyone mention this, so I dont even know if its possible. Is there anyway you can combine ...

Yes, you can use assembly with c/c++. I think you type in some special command then you put your assembly code there. I'm not really sure how you do it, except that it's not that difficult to include it and that you can actually include it. Try doing a search for it on the board; I'm sure you'll find info about it.

Yes it is possible to combine languages. A very important thing is understanding of the linker you are using. A lot of compilers, for whatever language, support a standard object-file format to which they can compile. With a linker which understands this format, you can combine it all.

Combing languages is done a lot, since most languages have something they are better in than others. So to make efficient software, you could consider to use the advantages the individual languages offer.

Java is a nice language, it is not very useful in real-time systems, but is is nice for creating for example a GUI. So for a real-time system with a GUI you could consider to use Java for the GUI and C++ for the real-time parts and if necessary use assembly to do the real low level stuff. If your application also has a lot of math to do, you could consider also program some parts in a functional language like Haskell.