Forums Search for: Compiler
Assembler Vs C-Compiler
inI have noticed that a number of people have asked questions about 'which compiler' to go for. First thing I will say is this. Do you really...
I have noticed that a number of people have asked questions about 'which compiler' to go for. First thing I will say is this. Do you really need a C-compiler? What's wrong with Assembly? IMO all that a C-compiler does is to act as a 'vale' obtructing the programmers' view hence 'better' understanding of the microcontroller they are developing code for (programming). It also forces peo
Code Composer Essentials
inHi All, I currently use the IAR compiler but wanted to check out Code Composer Essentials. I took a small test application (~7k code with...
Hi All, I currently use the IAR compiler but wanted to check out Code Composer Essentials. I took a small test application (~7k code with IAR) and compiled it using TI's CCE compiler. After changing some code to make it compatible with the TI compiler I had success. What I'd like to do is compare code size between the IAR compiler and TI's compiler. Has anyone seen an option in t
Compiler validation suites?
inHi, Would I be right to assume that all C compiler vendors check their code generation with C compiler test suites? regards, Richard
Hi, Would I be right to assume that all C compiler vendors check their code generation with C compiler test suites? regards, Richard
Compiler autodetection?
inHi, i'm using defines and ifs/elses for compiling with different compilers and to automatize this i'm looking for compiler (or preprocessor)...
Hi, i'm using defines and ifs/elses for compiling with different compilers and to automatize this i'm looking for compiler (or preprocessor) dependent defines . Does someone has a list of macros/functions or something else which is only availible with one compiler/preprocessor? Rolf
IAR vs CCE
inHi, this is my first post in this group. I started to work for the first time with MPS430 about two weeks ago. I received some code originally...
Hi, this is my first post in this group. I started to work for the first time with MPS430 about two weeks ago. I received some code originally written for IAR Compiler, and my first task is to make it run by using CCE Compiler. During this migration I have found that, beside all the necessary changes regarding proprocessor directives, intrinsics, memory allocation, compiler/linker opti...
C compiler parameter passing question for the MSP430 target
inI seem to recall the C compiler vendor representatives all appearing to claim that they place up to a certain number of parameters in...
I seem to recall the C compiler vendor representatives all appearing to claim that they place up to a certain number of parameters in registers, in the MSP430 case. If memory serves, that certain number was the first 4 or so? Anyway, a question arises regarding separate compilation and this compiler behavior. Given these prototypes for functions: /* abc() does not take the address of any
IAR or Crossworks Compiler?
inHi all, I am going to start a project that involves DSP, real time measurements and remote data communication with DNP3. Does anyone...
Hi all, I am going to start a project that involves DSP, real time measurements and remote data communication with DNP3. Does anyone know which compiler I should use: IAR or Crossworks C compiler or some other good compilers out there? Which one is better suit for the job? I may also need real time debugging with symbolic debugger and simulator/emulator as well. Thanks.
Best way in the IAR compiler to convert 2 bytes into 16-bit int
inI'm really new to MSP430 and IAR complier, but not new to embedded C programming. Under IAR compiler, what's the best way of conevrting 2...
I'm really new to MSP430 and IAR complier, but not new to embedded C programming. Under IAR compiler, what's the best way of conevrting 2 bytes into 16-bit int? Cheers, Nick P.S. I have used CCS compiler for PICs before. It had a function make16(hibyte, lobyte)
GCC compiler
inG'day all, I'm currently working on a MSP430 project; Processor MSP430F2618 Compiler CCS v4.1.3 So far so good. However: I'm trying to...
G'day all, I'm currently working on a MSP430 project; Processor MSP430F2618 Compiler CCS v4.1.3 So far so good. However: I'm trying to change compilers to the GNU msp430 port. And I hit a number of problems. I've solved all the usual culls such as C++ comments etc and changed the header file thus: /*#define CCS */ #define GNU #ifdef CCS /* this one for the CCS compiler */...
#pragma vector=TIMERA0_VECTOR - error in ez430 free compiler/assembler
inHello All, A bit of a rookie question: The examples show interrupt vector set up using the #pragma vector=TIMERA0_VECTOR compiler...
Hello All, A bit of a rookie question: The examples show interrupt vector set up using the #pragma vector=TIMERA0_VECTOR compiler pragma. This does not seem to work with the compiler in the environment shipped with the ez450 RF2500 kit. Is there a similar call in this environment ? Am I missing something ? Regards, Brian ------------------------------------
Re: Maxim MAXQ (Was PICs - why?! ...)
inJust had a peek at the MAXQ document you referred us to. My favorite line in it is "Furthermore, the modular organization of the MAXQ system...
Just had a peek at the MAXQ document you referred us to. My favorite line in it is "Furthermore, the modular organization of the MAXQ system and peripheral resources leads to compiler optimizations ...". What it should say is "leads to excedrin headaches for compiler developers everywhere...". One thing that compiler developers (well, me anyway) really hate is "
PC-Lint LNT file for MSP430?
inDoes anyone have a PC-Lint LNT configuration file for any MSP430 compiler they would be willing to share? I'm using the Imagecraft compiler,...
Does anyone have a PC-Lint LNT configuration file for any MSP430 compiler they would be willing to share? I'm using the Imagecraft compiler, but any 430 compiler would be a good starting point. Thanks. -- Chuck Cox - SynchroSystems chuck@chuc..., cccox@ccco..., www.synchro.com
Choice of compiler for MSP432
inCan anyone tell me what choices for a C compiler there are with the new MSP432? I have tried CCS6 but am having problems installing it. IT...
Can anyone tell me what choices for a C compiler there are with the new MSP432? I have tried CCS6 but am having problems installing it. IT seems that I am not the only one. Thanks Peter
pragma in a macro?
inI'm writing some compiler-independent msp430 code and would like to encapsulate all compiler-dependent code inside macros. This works fine...
I'm writing some compiler-independent msp430 code and would like to encapsulate all compiler-dependent code inside macros. This works fine until I try to do this for ICC430: #define INTERRUPT_HANDLER(vector, name) \ #pragma interrupt_handler name:vector \ void name(void) This generates a "# not followed by macro parameter" compiler error. Is there some clever way to get t
IAR Compiler - Stack Auto vars mis-alignment
inI've run across a bug in the latest (1.26a) rev. of the IAR compiler for the MSP430. The compiler doesn't generate correct word addresses for...
I've run across a bug in the latest (1.26a) rev. of the IAR compiler for the MSP430. The compiler doesn't generate correct word addresses for auto variables located on the stack when the variable is declared in a sub-scope after code in a function. It's not an easy set of circumstances to explain, but if you compile the follow code in ew1.26a you'll see nVal end up at offset 13 from the SP
MSP430 compiler Release mode
inTake pity - I'm a newbie at embedded programming I've got a prototype with a MSP430F1121a on a header board. I'm using the IAR compiler and...
Take pity - I'm a newbie at embedded programming I've got a prototype with a MSP430F1121a on a header board. I'm using the IAR compiler and the TI "Flash Emulation Tool". In Debug, the C-Spy debugger downloads a binary file to the MSP430 chip, no problem. Compiler Release mode, however, builds a hex/Text file which C-Spy does not handle - give an error message. How do I down
Simple problem when generating ELF/DWARF out file
Hi, all I am using IAR compiler (IAR C/C++ Compiler for MSP430 V3.42A/W32 [Evaluation] (3.42.1.1)) for writing applications in C for MSP430....
Hi, all I am using IAR compiler (IAR C/C++ Compiler for MSP430 V3.42A/W32 [Evaluation] (3.42.1.1)) for writing applications in C for MSP430. At the moment I write a very simple application and I need to generate ELF/DWARF output file, but I met some problems. I configure compiler output format and when I try to "make" the project, I receive this message: Error[e157]: Debug information mus...
Best, lowest cost, commercial C compiler?
inHi, I might need to move away from ASM soon - did we ever decide which commercial compiler would be "best" for a freelance developer? [That...
Hi, I might need to move away from ASM soon - did we ever decide which commercial compiler would be "best" for a freelance developer? [That means good tools, stable tools, high quality emitted code, compiler checked against test suites, good vendor support] regards, Richard --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (
Is their a position independant code library (CLIB) for use with IAR compiler?
inThe proclaimed "position indepenant code" option for the IAR compiler doesn't appear to be supported by their own libraries. The compiler...
The proclaimed "position indepenant code" option for the IAR compiler doesn't appear to be supported by their own libraries. The compiler generates PIC to correctly call functions, but loading addresses to constant data is done with abosolute addressing. I can't use the CLIB at all. The objects in the library were compiled to use absolute addressing. Is their a position ind
mspgcc internal compiler error
inHi I got this during compilation with mspgcc. ################## service.c:256: Internal compiler error in verify_local_live_at_start, at...
Hi I got this during compilation with mspgcc. ################## service.c:256: Internal compiler error in verify_local_live_at_start, at flow.c:586 ################## Don't anybody know what may cause this error? this code line make compiler crazy: return ((65536 * (Conf.nUdmax - Conf.nUdmin)) / 10000 ); in the another place similar code: nUs_charact = (65536*(nUs_target - Conf.nUdmin)