Re: ISA and copyright/patent/trademark
- From: Joe Chisolm <nospam@xxxxxxxxxx>
- Date: Fri, 17 Apr 2009 01:33:23 -0500
On Wed, 15 Apr 2009 18:57:01 -0400, CBFalconer wrote:
zwsdotcom@xxxxxxxxx wrote:
rickman <gnu...@xxxxxxxxx> wrote:
As to the ISA, it seems clear by example that the instruction set is
not copyrightable, only the opcode names. As to patents, I
ARM and Microchip have pursued people implementing architecture- clones
quite aggressively. Of course, why anyone would want to copy the PIC is
an unholy mystery.
Actually, if you stick to assembly code, they are quite useful. Just
don't try to use anything approaching a higher level language. Maybe
Forth works.
I've got a project using a 32K device that has over 8000 lines of 'c' and
about 1000 lines of asm. I use the free compiler from Microchip.
Even without the optimizing compiler I have some room left over. There
are some rules to follow with the c compiler
like:
if (a) return 1 else return 2
instead of
if (a) r = 1 else r = 2;
return r;
Also use bit fields any time you can. Switch statements can be better
than if/else if/else. Compound logical expressions in if statements
can produce some nasty code. If you look at the assembly listing and
play with some code constructs you can many times find a better way to
code for the compiler.
--
Joe Chisolm
Marble Falls, TX
.
- Follow-Ups:
- Re: ISA and copyright/patent/trademark
- From: CBFalconer
- Re: ISA and copyright/patent/trademark
- References:
- ISA and copyright/patent/trademark
- From: Antti
- Re: ISA and copyright/patent/trademark
- From: rickman
- Re: ISA and copyright/patent/trademark
- From: zwsdotcom
- Re: ISA and copyright/patent/trademark
- From: CBFalconer
- ISA and copyright/patent/trademark
- Prev by Date: Re: Test Suites (was: Richard Stallman is responsible for the shrinking economy)
- Next by Date: many drops make a ocean...
- Previous by thread: Re: ISA and copyright/patent/trademark
- Next by thread: Re: ISA and copyright/patent/trademark
- Index(es):
Relevant Pages
|
Loading