English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

7 answers

it depends on what the line says. If it is doing a math operation on some floating point numbers, then it needs to convert each of them by calling subroutines, then call the multiplication subroutines, then call any further arithemetic subroutines, then do any scaling or limiting if that is part of the line being converted, then put the final answer into the specified format. If the answer was used in a trigonometric operation like sine or cosine then more subroutine calls and conversions related to trig processing are called.

2006-10-01 05:19:09 · answer #1 · answered by Rich Z 7 · 0 0

Unknown. The exact number depends on what the line does, and how the compiler is programmed to write the machine code for that particular line.
Of course, if you're using a Windows compiler like Microsoft Visual C++, then you can open the IDE's CPU window and view the disassembled code of your C++ program.
If you're programming in DOS, you can use a debugger like Borland's Turbo Debugger to disassemble .exe and .com files.

2006-10-01 05:21:34 · answer #2 · answered by Balk 6 · 0 0

Depends on the complexity of the single line of high level language and the efficiency of the compiler.

2006-10-01 05:14:47 · answer #3 · answered by Anonymous · 0 0

A simple line of COBOL (from the very old days!) could translate into about 6 lines of assembler, a complex one into 15 to 20.

2006-10-01 05:38:16 · answer #4 · answered by XT rider 7 · 0 0

i'm truly searching ahead to this Ashes sequence and easily have not thoroughly written the Aussies off. even with the indisputable fact that England ought to bypass into the sequence as overwhelming favourites via present day sort and the actual shown actuality that the sequence is being performed in England. I reckon Chris Rogers might want to correctly be somewhat a dismal horse as he knows the circumstances over right here particularly properly. good to work out some pleasant banter flying round between both instruments of supporters too!

2016-12-04 02:32:31 · answer #5 · answered by scialpi 4 · 0 0

It varies, even with any given language. Python, for example, can be enabled with the Psyco 'Just-In-Time Compiler' which helps the computer run as fast as C code, without requiring compiling. It's slick!

2006-10-01 05:17:15 · answer #6 · answered by poorcocoboiboi 6 · 0 0

Most of the code is just pushing data on the stack and call routines from the libraries, its the libraries included by the linker that is big.
That's why using dynamic (dll) is creating real small code.

2006-10-01 05:24:15 · answer #7 · answered by Chri R 4 · 0 0

fedest.com, questions and answers