T
Tanty
Why is assembly preferred over C++, say, in time critical applications?
Thanx
Tanty
Thanx
Tanty
Tanty said:Why is assembly preferred over C++, say, in time critical applications?
Tanty said:Why is assembly preferred over C++, say, in time critical applications?
What happened to C ? What is time critical ? If you need someting to time
down to the last processor clock, a piece of asm can help, but if you
don't mind a few microseconds of jitter, C is up to the job. For 99.99%
of all cases, asm is pointless.
Follow up to alt.religion![]()
Pszemol said:Because the execution time of a assembly code is known for the programmer
and is relatively easy to be predicted.
John Larkin said:But I make a lot of money off that remaining 0.01%!
Tanty said:Why is assembly preferred over C++, say, in time critical applications?
Thanx
Tanty
Pszemol said:Because the execution time of a assembly code is known for the
programmer and is relatively easy to be predicted. When you write C++
code, the execution time can be unpredictable - for example when you
use dynamic object creation.
C++You have to be carefull with the memory management unpredicitbility in
You have a garbage collection and
not always it is under the developpers control.
Tanty said:Why is assembly preferred over C++, say, in time critical applications?
Thanx
Why is assembly preferred over C++, say, in time critical applications?
Kevin Aylward said:So, dont do it then. The issue is usually because asm can be faster,
sometimes...
C++
No. The amount of memory allocated in c++ is quite determistic.
c++ does not use garbage collection.
No. The amount of memory allocated in c++ is quite determistic.
Paul Burridge said:ISTR the heap memory handling ability of C is pretty crap though,
isn't it, Kev?
Wouter said:That is a statement, not a question.
Svenn said:No, it is his EE homework that he doesn't have the clue to research by
himself.
That's a problem with any language that uses dynamic memory
allocation, so use it with care. Or write your own malloc/free
stuff if you're not happy with the one provided. This is
no better or worse with assembly language. In simple versions
of BASIC, you don't have a choice, and when the memory is
totally messed up, the garbage collector comes along
Paul said:"Garbage collector" - I love that term.![]()
"Windows [n.], A thirty-two bit extension and GUI shell to a sixteen bitPaul said:ISTR the heap memory handling ability of C is pretty crap though,
isn't it, Kev?
Paul said:"Garbage collector" - I love that term.![]()