Re: It works... now what?



#2pencil <number2pencil@xxxxxxxxx> wrote:
> The reason (as I understand it) for writing in asm is for efficiency.

But efficiency means different things to different people.
For some it is speed. For others, size. For yet others,
it is simply crisper than going through the virtual machine
presented by compiled languages.

> So for this reason, once a program is finished, then it's time
> to make it work better, faster, & with more efficient code.

Optimization is a _huge_ subject, with asm only a small part
at the end. Please remember Knuth: "Premature optimization
is the root of all evil [code]"

> ; this code opens the windows registry,
> ; replaces the proxy server address,
> ; & then sets enable to 0 or 1

Hmm ... a dubious target for optimization. Will this code
be run often? Are delays intolerable? This sort of code is
normally written for robustness, not speed or size efficiency.

-- Robert


.



Relevant Pages

  • Re: Organizing data for readability and efficiency
    ... >> At this stage of programming, efficiency is no concern of yours. ... Premature optimization kills projects. ... At the core of an array access is just a lookup in a C array structure, ... Programmers often want to get their code right the first time. ...
    (comp.lang.perl.misc)
  • Re: Whats more important optimisations or debugging?
    ... The above rules refer to premature optimization, which is allowing efficiency ... considerations affect the design. ... a 600K line application by compiling it with the best compiler money can ...
    (comp.arch.embedded)
  • Re: Self-studying C++
    ... Efficiency when using iostreams is not important. ... > be many who disagree with some real-life examples of where it is important. ... is whether it would just be an optimization. ...
    (comp.programming)
  • Re: Self-studying C++
    ... Efficiency when using iostreams is not important. ... > be many who disagree with some real-life examples of where it is important. ... is whether it would just be an optimization. ...
    (comp.lang.cpp)
  • Re: Can I get the info of the who call the callback?
    ... Emmanuel Delahaye wrote: ... > Globals are evil. ... I know they are but I think that in terms of *efficiency*, ...
    (comp.lang.c)