Jerry Feldman wrote:
On Thursday 10 November 2005 11:01 am, Allen wrote:
What you do the small speed boost may not matter, but in the 80s my teacher was writing code for the 68K processor and you couldn't use C for that. There are always applications that require assembler. One that comes to mind was a project I was working on a few years ago where we had to insert code into a program that called a library function, but on return it had to restore all the registers back to the state they were in before the code, including the scratch registers. Some things you can do using ASMs from C. If you need to do things directly at the hardware level, assembler is required.
About 10 years ago, someone wanted a DOS utility that would simply exit with a 0 return code. I did it in 5 bytes, using debug. With Turbo C, it took a few K bytes.