View Single Post
  #63  
Old September 11th 17, 04:39 PM posted to rec.bicycles.tech
[email protected]
external usenet poster
 
Posts: 3,345
Default program to compute gears, with table

On Monday, September 11, 2017 at 7:00:44 AM UTC-7, Emanuel Berg wrote:
John B. wrote:

Sometime in 1980 Epson wanted to license the
software to run on their PX-8 that used
a built in LCD display. The application would
have to run from 48Kb of ROM.

They rehired the Programmer, John Barnaby,
who had earlier left the company, at a salary
of $100 an hour (1980 dollars, today $297 ).
The project was completed in two weeks,
whereupon Barnaby left the company again.


Assembler isn't really a programming language
in the modern sense, it is more like you say
exactly what the computer should do at a very
low level, down to manually moving data in and
out of CPU registers, just to do for example
basic arithmetics!

It is sometimes used today in combination with
a high-level language (like C) to provide
immediate access to CPU hardware on top
of that.

Today, using a high-level language like
C doesn't really put you at
a speed-disadvantage compared to using
assembler, because the compiler will perform
all sorts of optimizations. So if the
programmer writes sound code and picks
a sound implementation, any hacks left unturned
to get that extra juice can be left to the
compiler to optimize.

Perhaps John Barnaby could do it by moving
individual data items back and forth but for
mere mortals it is an open question if any
performance benefits will follow. Not to
mention (or I will mention it) it will take
some 10 or 100 times the longer to write.

Here is some assembler I wrote some 10 years
ago:


There are assembly programmers still but they sort of write themselves libraries of functions. Then they cross connect these functions. I looked at it but really I could program much smaller and tighter code in C. I could also write in assembly language as well but I write all programs from scratch in that case so you could get a slight increase in speed but not much over a good C compiler.
Ads
 

Home - Home - Home - Home - Home