![]() |
Forum Index : Microcontroller and PC projects : Pic 32 Asm code for Micromite ?
Author | Message | ||||
plasma Guru ![]() Joined: 08/04/2012 Location: GermanyPosts: 437 |
Hi , Is anyone good in Asm for pic32? I fear my c routine for the ledstripe is a little Bit to slow , its not tested yet but is c to slow i Need to go with asm and will glad about any help. Btw : if all working it will be free as ever Thx |
||||
JohnS Guru ![]() Joined: 18/11/2011 Location: United KingdomPosts: 4004 |
Which C compiler have you used and with which options (switches)? How is the hardware arranged? (Interfaces, speed, etc.) What is the C that you want to speed up? Often a better algorithm will make a much bigger improvement... John |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3272 |
C compilers are pretty good these days, I have long stopped trying to optimise my code by using assembler segments. Often the compiler output was better than my assembler. My advice is to stick with C, if it is not fast enough then nothing else will be either. Geoff Geoff Graham - http://geoffg.net |
||||
plasma Guru ![]() Joined: 08/04/2012 Location: GermanyPosts: 437 |
Maybe you are right Geoff . And John i will test the speed and hope all is ok |
||||
G8JCF![]() Guru ![]() Joined: 15/05/2014 Location: United KingdomPosts: 676 |
To echo Geoff's sentiments. MIPS assembler was never designed to be human coded - it's really quite "horrible" and human-unfriendly. Even the GCC compiler sometimes has trouble generating the truly best optimised code. Any comparison or thought that PIC32 assembler is like 80x86/68x000 etc would soon hit ugly reality. Rely on GCC, and if it's not quick enough for your application, then you probably need to redesign your algorithm(s) and/or move up a processor range. I wish that it wasn't so, but the days of hand-coded assembler have all but vanished (very sadly). Peter The only Konstant is Change |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |