Re: [PIC] Learning C
David C Brown <[email protected]>
| Newsgroups | gmane.comp.hardware.microcontrollers.pic |
|---|---|
| Message-ID | <CAFo_nNqie18bToAN8+w-82AbT8XOtMP2PtUyyqVfFFiBfqT=kg@mail.gmail.com> |
"Security through obscurity" as my son calls it when I tell he will never guess where the house key is hidden __________________________________________ David C Brown 43 Bings Road Whaley Bridge High Peak Phone: 01663 733236 Derbyshire eMail: [email protected] SK23 7ND web: www.bings-knowle.co.uk/dcb <http://www.jb.man.ac.uk/~dcb> *Sent from my etch-a-sketch* On Thu, 14 Nov 2024 at 09:40, Chris Roper <[email protected]> wrote: > Yes, That is common in C code. > > It is occasionally the result of optimization where it saves a byte or two > in the resultant hex file but is more commonly used as: > "Code security through Obspification" the thealry being if it is hard to > read it won't be copied or modified. > > On Thu, Nov 14, 2024 at 10:59 AM David C Brown <[email protected]> wrote: > > > Ans 404 to you :-) > > > > Onew of the problems I have with trying to understand code examples in C > is > > that so many of them are incomprehensibly dense. > > What would be five or six lines in Pascal or Basic is a single line in C. > > I appreciate that that is down to the programmer not the language but it > is > > off putting > > i have to remind my self of the old adage: You can write Pascal in any > > language > > __________________________________________ > > David C Brown > > 43 Bings Road > > Whaley Bridge > > High Peak Phone: 01663 733236 > > Derbyshire eMail: [email protected] > > SK23 7ND web: www.bings-knowle.co.uk/dcb > > <http://www.jb.man.ac.uk/~dcb> > > > > > > > > *Sent from my etch-a-sketch* > > > > > > On Thu, 14 Nov 2024 at 04:01, madscientistatlarge < > > [email protected]> wrote: > > > > > > > > > > > > > > > > > "...trying to make digital files uncopyable is like trying to make > water > > > not wet." > > > Bruce Schneier > > > > > > > > > Sent with Proton Mail secure email. > > > > > > On Wednesday, November 13th, 2024 at 8:18 PM, Spehro Pefhany < > > > [email protected]> wrote: > > > > > > > At 02:14 PM 2024-11-13, you wrote: > > > > > > > > > Do any of the books have syntax diagrams? Similar to what all the > > > > > pascal books had? I found those very, very useful when I was in > > > > > high school back in caveman days. > > > > > > > > > > > > Here you go, syntax of C in Backus-Naur form (BNF- now that brings > > > > back memories of Uni). > > > > > > > > The link says it was adapted from K&R 2nd edition's appendix. > > > > > > > > https://cs.wmich.edu/~gupta/teaching/cs4850/sumII06/The syntax of C > in > > > Backus-Naur form.htm > > > > > > Excellent, exactly what I was looking for. Thanks! I knew there had > to > > > be a name but right now I'd probably stumble a bit trying to write in > > > pascal. > > > > > > -- > > > http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive > > > View/change your membership options at > > > https://mailman.mit.edu/mailman/listinfo/piclist > > > > > -- > > http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive > > View/change your membership options at > > https://mailman.mit.edu/mailman/listinfo/piclist > > > -- > http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive > View/change your membership options at > https://mailman.mit.edu/mailman/listinfo/piclist > -- http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at https://mailman.mit.edu/mailman/listinfo/piclist