Re: Hey, what is all this 'off topic' posting?




Frank Bemelman skrev:

> <langwadt@xxxxxxxx> schreef in bericht
> news:1125950137.620824.64430@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> >
> > I downloaded a demo version of cosmics 6805 compiler, compiling
> >
> > unsigned char result;
> > unsigned short a;
> > unsigned short b;
> >
> > @interrupt void _Isr(void)
> > {
> > if(a==b) result = 1;
> > else result = 0;
> > }
> >
> >
> > Produced:
> >
> > b603 lda _a+1
> > b101 cmp _b+1
> > 260b bne L52
> > be02 ldx _a
> > b300 cpx _b
> > 2605 bne L52
> > a601 lda #1
> > b704 sta _result
> > 80 rti
> > L52:
> > 3f04 clr _result
> > 80 rti
> >
> >
> > Not too bad ....
>
> Well, it sure beats the handcoded version of John ;)
>
Didn't want to rub it in, that I in all of fifteen minutes
including downloading a compiler produced code on par with the
asm posted, and that without even looking at the architecture or
instructionset on a micro I have never used and except for how to tell
the compiler it's an ISR its portable to any processor that has a
c-compiler

It will not always be like that, assembler certainly has its
place and I use it regularly, but for most of the trivial housekeeping
code it is just a waste of time and brain power....

-Lasse

.



Relevant Pages

  • Re: Old days... Norton Commander
    ... I got Midnight Commander but I saw that it needs to be compiled. ... things by downloading them somewhere from internet. ... checking for C compiler default output file name... ... Could you please advise me how can I install by fixing that problem? ...
    (comp.unix.solaris)
  • Re: Types, Cython, program readability
    ... Anything like this is a lot more attractive to me if I can download and install a binary without *needing* a compiler. ... It isn't downloading the compiler set that worries me, it's that I almost never even want to think about it. ... on the Python lists. ... In the case of Pyrex, though, the ...
    (comp.lang.python)
  • Re: ARM 2106 GnuCC problem question How do you compile a programfor it.
    ... I installed the GNUC++ compiler from Cygnus ... and I can run the following kinds of commands OK ... Warning Internetworking not enabled. ... Or do I still need to link it and assemble it before downloading to the ...
    (comp.arch.embedded)
  • Re: Forte C evaluation download
    ... > send me the exact link for downloading the same. ... Is there any real reason why you need such an old version of the C ... Forte 6.2 is the oldest ... non-dead C compiler that Sun still supports actively. ...
    (comp.unix.solaris)
  • Re: Most Economical VB Development Compiler
    ... > I just might end up downloading the compiler you mention. ... highly compatible to VB because it obviously wants it to be the successor ... There even exists a code converter VB -> ...
    (microsoft.public.vb.winapi)

Loading