kgavionics
Full Member level 3
- Joined
- Jun 12, 2012
- Messages
- 167
- Helped
- 7
- Reputation
- 14
- Reaction score
- 11
- Trophy points
- 1,298
- Location
- Alberta.Canada
- Activity points
- 2,479
As such Assembly Language is often used to implement predictable accurate delays and tasks whose sequence of operations must not change regardless of the make/model/version of the compiler.
A 'good' compiler should largely negate those concerns.
i'm from Montreal kam1787, happy to know that you're canadian.Where in Canada are you? My hometown is Victoria.
.
Attempting, to compose such delay routines using standard C language structures, like for or while loops are plagued with issues.
In many cases, optimization can simply optimize such for or while loop based delay routines out of existence.
BigDog
I used calls to Assembler code with the understanding that such causes higher overhead in processing.
Doing this you may even discover a compiler bug someday, we put a lot of trust in them to be perfect, which doesn't always hold true.
It depends. For simple inline assembly on the PIC24's and C30 compiler ...........
FYI it is not possible to modiify a single "bit" on a PIC either in C or assembler as described above. You will always be dealing with bytes.
It is an 8 bit + processor family.
another question which is the best C compiler for pic micro controller guys?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?