Disabling compiler optimization of single function in XC16 (Doogie)
Is there a pragma or other mechanism to disable compiler optimizations for a single C function within a module without affecting the optimization of other functions within that same module?..
View ArticleXC16 v1.25 getting fatal error: pps.h: No such file or directory (apku04)
I was using XC16 v.1.24 and with it the "pps.h" header for uart. However, when i switch to v1.25 or the latest i get the "No such file or directory" Error so i asume the pps.h header is not supported...
View ArticleAvoid the usage of those Two builtin(s) macro(s) "dmapage" / "dmaoffset"...
Is it possible to avoid the usage of those Two builtin(s) macro(s) "dmapage" / "dmaoffset"and achieve the same by use of inline assembly or simular ? __builtin_dmapage__builtin_dmaoffset CodeExample...
View ArticleXC16 Assembly Library Strategy - external INC files or multiple static...
I have several assembly routines I like and re-use in several projects.I want to put them in a library to share them across several programs.The code uses compile-time equates to configure optional...
View ArticleDebugging Disassembly Issues (JPittenger)
I recently upgraded from MPLab X v1.85 to v3.15. I also upgraded from XC16 v1.21 to v1.26.Somewhere in the migration, I created a code bug. *******EDIT/ADDITION*********Whenever the debugger halts, the...
View ArticleLink Error: Could not allocate program memory (Jignesh)
Hello, I'm using MPLABX v3.26 & XC16 Compiler v1.26 to program PIC24FJ32GB002 which has 32kb/8kb of program/data memory. I get a link error when I try to build my program,...
View ArticleXC16 v1.25 Standard Library Header Files (rgilliom)
Can anyone tell me how XC16 locates the actual standard library header files used with the C standard libraries? I downloaded XC16 yesterday and it tells me that it is v1.25 even though the web link...
View Articleany one can tell this flag -fno-ivopts detials (jaya chandran)
"-fno-ivopts" pls any one can expline this flag full form...
View ArticleHow do I generate an assembly listing of my c code? (monzie)
I am using MPLAB X and XC16. How do I generate an assembler listing file?..
View ArticleQuick questions on generating delays in XC16 (v8pete)
I've had a search around but can't seem to find clear info, so would be very grateful for a few pointers on the following: Do the XC16 _delay functions use the timers or are they timed using processor...
View Articlebuilt-in functions “library”? (fyrdman)
Are the built-in functions in a “library” or are they truly “built-in” to the XC16 compiler? Is not really possible to separate the code for any unused built-ins from the compiler, as would be the case...
View ArticleXC16 - V1.24 - sscanf is buggy for parsing hex values (TomTux)
I hope, this is reading by the supporter for this compiler. The Problem:Usage of sscanf does not work properly like expected!!If the input value is a hexadecimal value in the form of "0x75ED" the...
View Article.set ___PA___, etc (mwwilson)
I am new to the tools and need to write some routines in assembly. In generating an assembly listing from the compiler, I see a couple .set directives with ___PA___ and ___SP___ . What are these ? I...
View Articleproject.properties and commits (fyrdman)
I am referencing an MPLAB X IDE Help page article:Additional Tasks : Control Source Code : Revision (Source/Version) Control Systems : Project Files To Save The article describes “project.properties”...
View Articlehow to allocat a constant array ? (FerrariLuigi)
Dear all I have the following source code: const unsigned int __attribute__((space(prog), address(0x1B000))) rom_test_page1[] = {0}; I compile and I link my program but the memory allocation map is:...
View ArticleXC16 Disassembly is incorrect (AZ1101)
I am using MPLab X 3.26 and XC16 compiler version 1.26. I was interested in how compiler implements an “inline” function, so I looked at disassembly of the code. However I could not make sense of the...
View ArticleWhen should i use auto_psv (nike9307)
Hi i've being reading the XC16 docs and i don't understand what auto_psv and no_auto_psv do. So my questions are what do they do, and when should i use them. Thank you in advance :)..
View ArticleSyntax for creating array of EDS pointers? (mfarver)
Is there a syntax that will cause xc16 to declare an array of EDS pointers? __eds__ static INT16U* G_addresses; /* Doesn't work */static __eds__ INT16U* G_addresses; /* Doesn't work */ Compiler is xc16...
View Articleelf-ld.exe has stopped working (JPittenger)
I am working with MPLAB X IDE v3.15, compiler XC16 v1.26.Everything has been working fine. I've been making changes to my project daily for about a week. Then yesterday, near the end of the day,...
View Articlexc16 and EDS pointers (mike_a)
I am amazed with the problems I have found with EDS pointers. I found several cases of incorrect code generation, one of them I submitted a couple 2+ years ago and it's still in V1.25.I'm about to...
View Article