Things to bear in mind include: Source-level debugging support will be somewhere between poor and impossible. Code that's on par with hand-written assembly, by the way – Jul 17 '13 at 18:17.. Please post a little about the microcontroller you plan to use (Data Memory, Program Memory) and whether there are any performance requirements that must be met so we can help a little more concretely. This is actually for a Robot for a project at university and the coding does not actually require OOP.. Addition: The microcontroller I'm using is an Atmel AT89C51 with 4K Bytes of Reprogrammable Flash Memory, and 128 x 8-bit Internal RAM.. Program Compiler DownloadAt89s51 ProgrammerKeil uses C, but the program I need to write is very string-intensive and C is quite string-unfriendly as compared to C# which is what I'm used to using. Command And Conquer Ultimate Collection Free
Also, if you really are going to be doing some serious string handling I would recommend using the C standard library rather than a string object library simply because you have better control over in-place substitution and so string copies become glaringly obvious in the code.. Could someone please tell me if it's possible to burn an 8051 microcontroller with a C program? I've tried searching about it online but can't seem to find out for sure if it's possible or not.. And does anyone know about the header file?C uses #include reg51 h but I tried to find out if this works for C and couldn't find anything on it.. Runtime overhead of OOP on an 8-bit machine I would strongly recommend doing some serious benchmarking before committing to a tool.. g Or would both seem like suitable candidates) However, take into account that a scripting language such as lua will usually impose approximately 100kb+ of overhead in space, Nasal is somewhat more lightweight and may compile down to 50-70 kb if you disable certain extensions.. I'm working on an LLVM port to an 8 bit architecture (sorry, can't say any more than that), and the C front-end generates beautiful numerical code that's impossible to generate from pure C! I've basically got a hacked-up version of Eigen 3 generating fixed-point numerical code for an 8 bit architecture with hardware multiplier.. You might want to consider providing additional detail about the sort of program that you intend to run on that microcontroller: You mentioned C, as well as C# in your posting, both of which are surely not ideally used for heavy string processing on a microcontroller, not to mention that you are probably considering heavy use of the STL, which would furthermore increase the size of the executable? So what exactly are your primary constraints (RAM, CPU, ROM etc)?If you really think that you need to do this string processing in an OO fashion, you might want to consider running a lightweight embedded scripting interpreter on the controller, so that you can then provide your string processing routines using the scripting language, while the interpreter itself would be ANSI C compiled to a HEX file (e.. I would need a C compiler that creates a Hex output file that can then be burnt onto the microcontroller.. Memory isn't cheap in embedded systems and you will no doubt have some address space limitations. e828bfe731
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |