Hi Bob,
C++ can but managed C++ cannot. The whole idea of a managed language is
that
it compiles to a typesafe and verifiable code (IL) which is JIT compiled
to
the final native code, whatever that may be.
Yup, but cant you have a mixed assembly? As I understand, the IL is
embedded inside on compilation.
It's hardly typesafe to allow people to mess about with the CPU registers
in
the middle of a statement.
ACK, I totally agree with you. But as a programmer I like to experiment
with things, and I'm sure if thoroughly tested you can make some nice little
methods that would give any app a speed boost if used correctly.
Having used inline assembly on numerous occasions I understand it's
advantages but I still think it's a good idea not to consider it for all
but
the most critical of applications considering the power and efficiency of
modern compilers.
Well, I partly agree with that, but at the end of the day I'm 100% self
taught and I am still to learn assembly, using "inline" in my favourite
language would be the best way for me as I could probably find practical
uses for it, as well as knocking up some examples for my web site so other
people know how to do it.
I wouldn't really consider GDI or GDI+ as an alternative to assembly if
you want sheer speed, would you? I understand that it's allot easier to use
but that's one of the reasons it's so slow. I've had to learn Direct3D just
to get some decent performance out of graphics on my PC, and the only bottle
neck is the part written in GDI+, which is a shame, hence my interest in
messing around with a bit of assembly. But anyway, I wouldn't worry, I
wasn't planning on doing inline assembly willy nilly! ;-)
Nick.