EmbeddedRelated.com
The 2024 Embedded Online Conference

DIAB 5.2.0.0 Linker issue

Started by Whaddayawant in comp.arch.embedded19 years ago 1 reply

Greetings, When using the DIAB linker for the PPC8250 target I see some anomalies in the generated o/p srec. I have a bunch of STORE...

Greetings, When using the DIAB linker for the PPC8250 target I see some anomalies in the generated o/p srec. I have a bunch of STORE 0xAABBCCDD, 4 directives in the .dld file to put some sort of a header, however I see the 0XAABBCCDD in the srec. followed by 12 zero bytes. Anyone encounter this. I guess I should use ddump to look at the .elf to see whether there is a goof up there or in ...


Diab Linker Overflow specification?

Started by BekAL in comp.arch.embedded18 years ago 1 reply

I am looking at the linker manual for the Diab PowerPC linker command language, and cannot find any sufficient information on the use of...

I am looking at the linker manual for the Diab PowerPC linker command language, and cannot find any sufficient information on the use of the Overflow Specification - which is supposed to be the ability to have code that overflows one segment be directed to another. Does anyone know of any better documentation on how to make use of this? Our code has grown to exceed one of the allocated blo...


What is debugging information?

Started by jani in comp.arch.embedded16 years ago 1 reply

I work on PowerPC based Embedded Systems. Programming language is C. Cross compiler is Diab 4.2b. FYI, Windriver has purchased Diab. ...

I work on PowerPC based Embedded Systems. Programming language is C. Cross compiler is Diab 4.2b. FYI, Windriver has purchased Diab. Along with the compiler comes a utility called ddump. This utility has the following syntax. ddump [command] file I invoke this utility as follows: ddump -D filename.elf I believe .elf stands for executable linking format. Anyways, this command means ...


Diab PPC Assy. macro question

Started by Mark A. Odell in comp.arch.embedded19 years ago 2 replies

I'm trying to swap an 8 byte quantity via a Diab macro but I am unable to figure out how to get access to the second word of the unsigned long...

I'm trying to swap an 8 byte quantity via a Diab macro but I am unable to figure out how to get access to the second word of the unsigned long long. Here's what I have: asm uint64 swap8Bytes(uint64 eightBytes) { % reg eightBytes; ! "r0", "r12" mr r12,eightBytes /* LSW */ rlwinm r0,r12, 8, 8,31 rlwimi r0,r12,24,16,23 rlwimi r0,r12,24, 0, 8 mr ...


68k chip, Diab Compiler and odd behavior

Started by Scott in comp.arch.embedded20 years ago 10 replies

Let me first say that I am new to the embedded development community. I have been tasked with determining the problem with the code below. Let...

Let me first say that I am new to the embedded development community. I have been tasked with determining the problem with the code below. Let me explain what is happening and why I find it strange. The problem is in the inner for loop. The first 16 times through the loop all lines execute as expected. After that, when I step through with the debugger, line 12 is executed and the debugger ski...


using malloc in boot code

Started by Joe Bruin in comp.arch.embedded20 years ago 6 replies

does it make sense to allocate memory dynamically in bootcode? i need to uncompress the image before the os is started, and the zlib routine...

does it make sense to allocate memory dynamically in bootcode? i need to uncompress the image before the os is started, and the zlib routine will call malloc. my programming is failing in malloc and i believe that i'm not initializing the heap. i'm using diab 4.2 compiler/ass/linker on ppc 860. i should be linking the memory map correct w/ stack, heap, etc...any help? thanks in advance


Linking problem

Started by Anonymous in comp.arch.embedded16 years ago 1 reply

Hi, I am Vijay Bhaskar. I am facing some linking problems while running the program in Diab compiler. For referrence i am pasting the...

Hi, I am Vijay Bhaskar. I am facing some linking problems while running the program in Diab compiler. For referrence i am pasting the linking problem below. Undefined symbol 'atan2' in file 'filename.o' After that i have added the corresponding library function in linker options (libm.a) to avoid this problem. I got rid of above probelm, but i am facing some other problem ...


makeSymTbl filters required symbols

Started by Anonymous in comp.arch.embedded15 years ago

I am using VxWorks 5.5 with a BSP for the 5307 Coldfire CPU, and the Diab 4.4 compiler. The problem is this: The makeSymTbl.tcl script...

I am using VxWorks 5.5 with a BSP for the 5307 Coldfire CPU, and the Diab 4.4 compiler. The problem is this: The makeSymTbl.tcl script filters symbols that do not begin with an underscore =93_=94. This removes symbols from the symbol table such as =91dbmul=92 and =91fltused=92 found in libdcc.a., libcfp.a, and/or libimpfp.a. When creating a dynamically loadable module (.out), the load...


BestComm Tasks for PSC1 Rx on MPC5200B

Started by Taran in comp.arch.embedded17 years ago

Hi, I am using the MPC5200B processor, the Lite5200B evaluation Board. I have a Rx BestComm Task for receivng data on PSC1 (Uart Mode) from...

Hi, I am using the MPC5200B processor, the Lite5200B evaluation Board. I have a Rx BestComm Task for receivng data on PSC1 (Uart Mode) from the Hyperterminal of the host desktop. For downloading the executable I am using the Windriver ICE, Vision Click. Compiler is diab. When I set up the Rx Task and start it and then send a text file through the Hyperterminal I get BestComm interrupts a...


PowerPC MPC5200B, changing mode to run in little endian

Started by Taran in comp.arch.embedded17 years ago 1 reply

Hi, We are using Lite5200B eval board, out software is compiled using the Windriver diab 5.3.1.0 with the 5200B patch. We are using...

Hi, We are using Lite5200B eval board, out software is compiled using the Windriver diab 5.3.1.0 with the 5200B patch. We are using the WindRiver ICE for downloading the executable to the board and stepping through. We have our software with the MPC5200B running in default big endian mode. Because the PCI bus is little endian mode we are evaluating the impact on software if we switch th...



The 2024 Embedded Online Conference