I probably saw the light before you were programming!=20 I got hooked on C in 1976 on a PDP-11/45 running Unix V6. (it had 256K of RAM and supported 16 concurrent users. those were the days. sigh...). =20 But there is no substitute for understanding the machine architecture. I still write lots of code in ASM. Sorry for helping the thread to veer OT... Phil --- Ake Hedman wrote: >=20 > You have seen the light... ;-) >=20 > Cheers > /Ake >=20 > phil B wrote: >=20 > >While I prefer to understand the chip to a depth > that > >only asm allows, it is completely valid that some > one > >whould prefer to code in C. The benefits of C are > >very real. > > > >As part of evaluating cc5x, I rewrote my driveway > >sensor logger code in C (ds1302-SPI, relay, serial > >I/O). It took all of about 3 hours vs the 2 days > to > >do the asm version (and I borrowed a lot of asm > code > >from previous projects). Granted, some time was > saved > >because I was writing the program the second time > but > >not having to worry about details like the screwy > >conditional instructions of the PIC is a big > benefit. > > > >Phil > > > >--- Jan-Erik Soderholm > > >wrote: > > =20 > > > >>Hasan A. Khan wrote : > >> > >> =20 > >> > >>>Executing: "C:\Program Files\bknd\CC5X\CC5X.EXE" > >>>SAMPLE1.C -CC -fINHX8M -p16F628 -I"C:\Program > >>>Files\bknd\CC5X" -a -L -Q -V -FM +reloc.inc > >>>Error : Unable to open file 'reloc.inc' > >>> > >>>why can't the compiler find it? > >>> =20 > >>> > >>Does it exist at all ? > >> > >>Jan-Erik. > >> > >>PS: > >>You also wrote : > >>" One thing I learned was that I didn't have to > use > >>assembler..." > >> > >>No, but why not ? > >>You are using a 16F628. Not that much memory. And > >>you'll > >>probaby learn the chip faster with assembler then > >>with C. > >>Have you written anything in (PIC) assembler ? > >> > >> > >> > >>--=20 > >>http://www.piclist.com PIC/SX FAQ & list archive > >>View/change your membership options at > >>http://mailman.mit.edu/mailman/listinfo/piclist > >> > >> =20 > >> > > > > > > =09 > >Discover Yahoo!=20 > >Use Yahoo! to plan a weekend, have fun online and > more. Check it out!=20 > >http://discover.yahoo.com/ > > =20 > > >=20 >=20 > --=20 > --- > Ake Hedman (YAP - Yet Another Programmer) > eurosource, Brattbergav=E4gen 17, 820 50 LOS, Sweden > Phone: (46) 657 413430 Cellular: (46) 73 84 84 102 > Company home: http://www.eurosource.se =20 > Kryddor/Te/Kaffe: http://www.brattberg.com > Personal homepage: http://www.eurosource.se/akhe > Automated home: http://www.vscp.org >=20 >=20 > --=20 > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist >=20 =09 __________________________________=20 Do you Yahoo!?=20 Make Yahoo! your home page=20 http://www.yahoo.com/r/hs --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist