Em 31/5/2011 18:54, Michael Watterson escreveu: > On 31/05/2011 20:24, Isaac Marino Bavaresco wrote: >>> Only one question more: I do not know anything about C, sorry for that,= but I >>>> only know assy and some mikrobasik. >>>> >>>> Is it difficult to learn C ? >> I don't think so. YMMV. > But very hard to write perfect programs with As somebody pointed out, learning to program and learning a language are different things. A bad programmer is a bad programmer in any language > Takes much longer to learn the Libraries This problem i common to every language. >>>> Why is it so used worldwide? > Because most of UNIX, Linux, OS/2, Windows etc is written in it. Sheer=20 > momentum. One more good reason... >> Because of its portability. That is: write once and reuse many (with >> minimal modifications). > Because it's little more than a machine independent macro assembler.=20 > Makes it very portable. Well, it seems a good reason for the assembly programmers migrate to C :) > If writing accurate clear to read and easily maintainable programs is=20 > more important than portability look at other languages. I think this is a point that is more related to programming style than to the language itself, although some languages really don't help. > I prefer C for Linux and ARM. > C# for Windows GUI applications > C++ or Modula-2 for Device drivers, OS > JAL for PIC 10/12/16/18F I use GCC in C or C++ mode where available, and for desktop GUI applications I use wxWidgets so I need to write code only once and compile for Windows, Linux and Macintosh (although I never used a Mac in my life). > C is probably best for other Microchip CPUs which are only really PICs=20 > in part name.. Don't underestimate the C compilers for small PICs, Hi-Tech PICC is very good. It's a long time since I last used pure assembly in a PIC application= .. I like Hi-Tech PICC for PIC16F and MPLAB C18 for PIC18, and they are very efficient. For dsPIC, PIC24 and PIC32 there is GCC, which is a great thing because it is easier to port GCC code across platforms, including desktop systems. Isaac --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .