EmbeddedRelated.com
The 2024 Embedded Online Conference

Build U-Boot for Atmel AT91RM9200 demo board using Greenhills?

Started by Dennis C in comp.arch.embedded20 years ago 2 replies

Hello everyone: I like to build U-Boot for the Atmel AT91RM9200 ARM9 demo board. However the docs say that it is only buildable on Linux using...

Hello everyone: I like to build U-Boot for the Atmel AT91RM9200 ARM9 demo board. However the docs say that it is only buildable on Linux using GNU C. I like to ask if U-Boot can be built using the Greenhills compiler using their MULTI IDE on the Windows XP platform? Has anyone gotten it to work using the Greenhills compiler? Any tips is much appreciated! Thanks


PIC16F877A Code problems

Started by Devyn in comp.arch.embedded20 years ago 3 replies

Greetings Everybody! I was trying to use the A/D module in PIC16F877A. I'm using a C compiler (Hi-tech Picclite). The code i wrote passes...

Greetings Everybody! I was trying to use the A/D module in PIC16F877A. I'm using a C compiler (Hi-tech Picclite). The code i wrote passes values to PORTD. The compiler declared the o/p of the ADC as ADRESH and ADRESL, "static volatile unsigned char" type. The code I wrote was :- char a,b; //after adc conversion (which works) //o/p right justified a=ADRESH; b=ADRESL; PORTD=a; //wor...


Green Hills compiler and debugger for ColdFire

Started by David Brown in comp.arch.embedded18 years ago 2 replies

A customer of ours has a Green Hills compiler suite for the 68k and ColdFire. The version he has is 1.8.9, from 2000. Does anyone know if...

A customer of ours has a Green Hills compiler suite for the 68k and ColdFire. The version he has is 1.8.9, from 2000. Does anyone know if the Green Hills debugger will work with the ColdFire bdm adaptor from P&E Micro? The latest Green Hills version will, apparently, but we don't know about the older version. The old version supports the Macgraigor wiggler, but that no longer exists ...


Mplab Microchip problem

Started by Dan in comp.arch.embedded19 years ago 2 replies

I use Mplab 6.3 for programming. I also installed piclite.exe for have a C compiler for my code (generic is asm compiler). I use 16f876a....

I use Mplab 6.3 for programming. I also installed piclite.exe for have a C compiler for my code (generic is asm compiler). I use 16f876a. When i compile my design MpLab give me an error: -- Executing: "C:\PICCLITE\BIN\PICL.EXE" -C -E"lab1p1.cce" "lab1p1.c" -O"lab1p1.obj" -I"C:\PICCLITE\lib" -Q -MPLAB -16F876A Error[000] : Unknown flag -16F876A Halting build on first failure as re...


Reading EEPROM data, ATMEGA16, with imagecraft c-compiler

Started by fabrizio in comp.arch.embedded19 years ago 2 replies

Hei all, The intension is to read out a table located in EEPROM using the imagecraft C-compiler version 6.31A Definition in...

Hei all, The intension is to read out a table located in EEPROM using the imagecraft C-compiler version 6.31A Definition in C --------------- #pragma data:eeprom char Output_Ports_Table[] = { 0x38, 0x02}; #pragma data:data .. .. In the program i write following code ... ... unsigned char Table_Contents; EEPROM_READ((int)&Output_Ports_Table[0], Table_Contents); Tab...


CCS Compiler and Const Lookup Table

Started by Robert Scott in comp.arch.embedded19 years ago 3 replies

The CCS compiler for mid-range PICs seems to fail with constant lookup tables that span more than 256 bytes. Here is an example for the...

The CCS compiler for mid-range PICs seems to fail with constant lookup tables that span more than 256 bytes. Here is an example for the PIC 16C73B: const int16 PTable[] = {1,2,3... //256 16-bit entries, compiles to: 0059: BCF 0A.0 005A: BCF 0A.1 005B: BCF 0A.2 ;clearing low 3 bits of PCLATH 005C: ADDLW 60 ;add index to table base address 005D: BTFSC 03.0 ;check f...


Benchmark: STL's list vs. hand-coded one

Started by Jyrki Saarinen in comp.arch.embedded16 years ago 37 replies

Hello everyone, in the compiler thread someone (was it Dijkstra?) claimed that M$ STL implementation of the doubly linked list was 50x slower...

Hello everyone, in the compiler thread someone (was it Dijkstra?) claimed that M$ STL implementation of the doubly linked list was 50x slower than a hand-coded implementation. Now, I get the metrics that they are equally fast. OS: Ubuntu 7.10 CPU: Athlon XP 2600+ compiler: gcc 4.1.3 opts: -O3 -march=athlon-xp Results: Custom impl. took 4.000000 seconds of CPU time. STL impl. too...


Build U-Boot with soft floating point - help!

Started by Dennis C in comp.arch.embedded20 years ago 9 replies

I am building U-Boot for my embedded ARM9 target. The build is done using Linux Redhat 9 running on a PC. When I installed my GNU C compiler,...

I am building U-Boot for my embedded ARM9 target. The build is done using Linux Redhat 9 running on a PC. When I installed my GNU C compiler, I did: ../gcc-$GCC_VER/configure --target=$TARGET --with-newlib --prefix=$PREFIX --with-gnu-as --with-gnu-ld --nfp make all make install I want the compiler to generate floating point library calls instead of using the hardware FP. I get this ...


Need C source for 64 bit integer math (have 32bit limit on my compiler)

Started by Andrew in comp.arch.embedded15 years ago 12 replies

I'm using CodeVision C compiler on an AVR. CodeVision has 32bit limitation for integers. I need to do 64bit integer math (32bx32b,...

I'm using CodeVision C compiler on an AVR. CodeVision has 32bit limitation for integers. I need to do 64bit integer math (32bx32b, 32b+32b). I could reinvent the wheel, but figure this has to be out there in multiple places for free. Any suggestions for free C source for 64bit integer math?


Which AVR Studio and C compiler for AVR 8-bit microcontroller and JTAGICE?

Started by pozz in comp.arch.embedded11 years ago 5 replies

I see there are three AVR Studio versions: 4, 5 and 6. Which one to use? I don't understand if a free C compiler is present in all of...

I see there are three AVR Studio versions: 4, 5 and 6. Which one to use? I don't understand if a free C compiler is present in all of those versions or only for AVR Studio 6. Anyway I see there is a AVR 8-bit toolchain for Windows: could it be used in AVR Studio 4 too? I have an old JTAGICE debugger clone with RS232 interface only. I think only AVR Studio 4 supports this old debugger. Is...


armv4l-unkown-linux-gcc compiler problem!!

Started by Chan Ka Cheong in comp.arch.embedded19 years ago 3 replies

Hi, I am a newbie in the embedded system world. Currently, I got a development board with StrongARm 206MHz CPU. I got the vivi and the cross...

Hi, I am a newbie in the embedded system world. Currently, I got a development board with StrongARm 206MHz CPU. I got the vivi and the cross compiler and prepared to compile a bootloader for my embedded system, However when I run the "make" command /opt/host/armv4l/bin/armv4l-unknown-linux-gcc -I/root/cheong/gsl/linuette/vivi/i nclude -I/opt/host/armv4l/include/ -Wall -Wstrict-prototypes -O...


Embedded Software Regression Testing

Started by EL in comp.arch.embedded17 years ago 6 replies

Hi: I need some advice about how to perform unit testing and regression testing on embedded software. - Do you perform unit testing on host...

Hi: I need some advice about how to perform unit testing and regression testing on embedded software. - Do you perform unit testing on host (PC) using a different compiler or on target with the actual compiler??? Do you think an "on host" test is useful at all?? - In the case of "on target" tests, how do you interact with the system??? Do you modify the code to only perform the functi...


Floating point I/O in GCC for MSP430

Started by Joseph Casey in comp.arch.embedded19 years ago 3 replies

Greetings. I am using GCC v3.3 compiler for MSP430. I can't get uprintf() to work for floating point variables. Here is example code: float...

Greetings. I am using GCC v3.3 compiler for MSP430. I can't get uprintf() to work for floating point variables. Here is example code: float i, k, m; i = 20.125f; k = 20.125F; m = 2.0125E+1; uprintf( serial_out, "%F \r\n", i ); uprintf( serial_out, "%F \r\n", k ); uprintf( serial_out, "%2.2E \r\n", m ); uprintf( serial_out, "%g \r\n", m ); Compiler messages: analog9.c:259: warn...


Free pascal compiler for the 8051 family of microcontrollers

Started by Funa in comp.arch.embedded16 years ago 6 replies

Maybe there is somebody that still uses the old 8051. And maybe there is somebody who likes programming in pascal. Here is Turbo51 - a...

Maybe there is somebody that still uses the old 8051. And maybe there is somebody who likes programming in pascal. Here is Turbo51 - a free pascal compiler for the 8051 family of microcontrollers: http://turbo51.com/ Igor


Compiler bug or my mistake?

Started by Vladimir Vassilevsky in comp.arch.embedded11 years ago 9 replies

IAR AVR ECPP Overloaded function: void foo(u8 x); void foo(s16 x); It appears that foo('A') calls s16 version of function, as if 'A' is...

IAR AVR ECPP Overloaded function: void foo(u8 x); void foo(s16 x); It appears that foo('A') calls s16 version of function, as if 'A' is int. However foo((u8)'A') calls u8 version of function, as it is supposed to be. Is this my mistake or compiler bug ? VLV


New ICI for MILEPOST GCC (machine learning based research compiler)

Started by Grigori Fursin in comp.arch.embedded16 years ago

Dear all, Just a short note that we have released the new Interactive Compilation Interface (http://gcc-ici.sourceforge.net) with several...

Dear all, Just a short note that we have released the new Interactive Compilation Interface (http://gcc-ici.sourceforge.net) with several optimization plugins for MILEPOST GCC - machine learning based adaptive research compiler. We continue research to reuse optimization knowledge among different programs and architectures based on statistical and machine learning techniques, and plan...


Build Application for eCos

Started by Me On Line in comp.arch.embedded16 years ago

Hi Everyone... I have a problem in a compilation process of an applicaiton using eCos complaint GNU gcc compiler. Thought when i compile an...

Hi Everyone... I have a problem in a compilation process of an applicaiton using eCos complaint GNU gcc compiler. Thought when i compile an application,the compiler shows an error message. But the correct program produce the following error. /opt/ecos/gnutools/i386-elf/bin/../lib/gcc-lib/i386-elf/ 3.2.1/../../../../i386-elf/bin/ld: unrecognized option '--out-implib' /opt/ecos/gnutool...


gcov for MIPS

Started by karthikbalaguru in comp.arch.embedded15 years ago 3 replies

Hi, I find that gcov is very good Code Coverage tool if the compiler, gcov and the files required for gcov are generated in the same Host...

Hi, I find that gcov is very good Code Coverage tool if the compiler, gcov and the files required for gcov are generated in the same Host PC. But, i have a MIPS processor based board. The code is initially cross-compiled in the Host PC using the MIPS based cross-compiler. I executed the binary in the Board (Hardware). Will the files necessary for gcov be generated during the execution o...


Collective Tuning Center to automate compiler, architecture and program design is now open for testing

Started by Grigori Fursin in comp.arch.embedded15 years ago 18 replies

Dear friends, After 4 months of redevelopment we opened Collective Tuning Center (http://ctuning.org) for testing. It provides collaborative...

Dear friends, After 4 months of redevelopment we opened Collective Tuning Center (http://ctuning.org) for testing. It provides collaborative environment to develop common R&D tools with open API to automate compiler, architecture and program design and optimization using statistical and machine learning techniques. It also provides an open access to the Collective Optimization Database ...


Details on compiler behaviour for 8051 bit manipulation

Started by Anonymous in comp.arch.embedded17 years ago 2 replies

I was investigating my 8051 compiler's (its Hitech 7.6) behaviour regarding bit manipulation, and came up with some strange/interesting results....

I was investigating my 8051 compiler's (its Hitech 7.6) behaviour regarding bit manipulation, and came up with some strange/interesting results. Lets say we want to manipulate PX0, which is the lowest bit in the IP register. Now, PX0 is defined with static bit PX0 @ 0xB8; which is the BIT address 0xB8. And IP_BITS is defined with static SFR_BITS IP_BITS @ 0xB8; which is the BYTE ad...



The 2024 Embedded Online Conference