Re: a common belief or a wrong C[++] compiler?

From: Relvinian (m_at_msn.com)
Date: 08/16/04


Date: Mon, 16 Aug 2004 11:25:09 -0600

Beta,

I haven't been programming in assembler as long as I have in C/C++ (because
that has been my profession for 12 years now) but I do know that a WELL
written c/c++ code can't be optimized that much in assembler. Yes, you can
get more performance from hand written assembly code but not from 2x to 12x.

Now, if you would have said up to 12x, then I might believe you but with
stating a lower limit (like 2x), I will dispute that claim anytime with
anyone!!

Relvinian

"beta" <beta@s.l> wrote in message
news:htvph0la6h9otq11bnr43t4oae1ujvk2mj@4ax.com...
> It seems I have heard that assembly is useless because "the compilers
> make a very good work and soon humans can't exceed compiler
> optimisation".
> If it is true why I poor beginner that know 1/2 of instruction set of
> the cpu can improve all the C[++] version of function or procedure
> from min. 2x to 12x (until now)?
> Is it the case I have the wrong C[++] compiler?



Relevant Pages

  • Re: About graphics and big amounts of data.
    ... Lars Rune Nøstdal wrote: ... For now I experiment with details, so C/C++ ... or assembler are inappropriate. ... It's really surprising that Lisp ...
    (comp.lang.lisp)
  • New edition of my NASM-based tutorial
    ... programming in 32-bit protected mode. ... Its main audience is the C/C++ programmer who wants to learn ... The assembler used is the Netwide Assembler. ... the C files in the example files for the other compilers were ...
    (alt.lang.asm)
  • Re: how to create symbol table of an assembler
    ... Ask a c/c++ mailing list? ... On Sat, 19 Aug 2006, payal sinha wrote: ... i have to write a code to generate a single pass assembler. ... platform is fedora core 4 ...
    (perl.beginners)
  • Re: Objekt-Instanziierung im Assembler
    ... dieseitigen Leben C/C++ nicht mehr kapieren werde - das schmerzt, deswegen auch der Umweg über den Assembler - ...
    (de.comp.lang.assembler.x86)
  • Re: IL Code Security
    ... Let your boss know that it is rather straightforward to disassemble a C/C++ ... application and if you are looking for an algorithm in particular, ... even easier to get from the generated assembler. ... and prevent memory-peeking which is a way to get aroung obfuscation of .NET ...
    (microsoft.public.dotnet.languages.csharp)