What are the minimum requirements to get a job in?

W

Wolfgang Strobl

Christian Heimes said:
To be fair, memcpy() is a pretty simple function.

This, of course, depends on the target architecture. See for example
<http://www.microchip.com/forums/m120261.aspx> or
It can be implemented
in just about two lines of C code plus five lines of boiler plate.

Or in a single line of IBM 360 ASM/F Code, plus boiler plate. :)
<http://www.bixoft.nl/english/opcd/mvcl.htm>

In 1979, I implemented various block move code snippets for three
different eight bit microprocessors of that time. The parameterized
variant took between 20 and >30 instructions.
 
C

Chris Angelico

This, of course, depends on the target architecture. See for example
<http://www.microchip.com/forums/m120261.aspx> or


Or in a single line of IBM 360 ASM/F Code, plus boiler plate. :)
<http://www.bixoft.nl/english/opcd/mvcl.htm>

In 1979, I implemented various block move code snippets for three
different eight bit microprocessors of that time. The parameterized
variant took between 20 and >30 instructions.

Same in 8086 - you just do a REP MOVSB (after setting CX to the
length, DS:SI to the source, ES:DI to the destination). But it's
slower than the equivalent with more explicit register action.

ChrisA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,765
Messages
2,569,568
Members
45,042
Latest member
icassiem

Latest Threads

Top