greenhills

Embedded wxWidgets for ThreadX OS

I'm working on an embedded system using ThreadX. The project will involve a GUI. I'm looking for a port of wxWidgets for embedded on ThreadX operating system. My search has turned up wxWidgets for embedded Linux and WinCE. Also, is wxWidgets difficult to port to a new (different) OS? Thanks, (The project tools are C++ using Gre...

GCC vs Greenhills on ARM

I'm interested in any comparisons between GCC and Greenhills C compiler with regard to memory footprint of generated code specifically on ARM platforms. Are there any benchmarks or comparisons for these compilers? Has anyone had any experience here that they'd like to share? ...

GreenHills - small data area overflow

I'm hoping maybe someone has a quick answer for this but essentially when I turn on optimizations, I get the following error: [elxr] (error) small data area overflow: 0xfff9f6fc (signed) didn't fit in 16 bits while performing relocation in file test_main.o at location sti_13_test_main_cpp_252229d3+0xc, to reference sym...

Multiply defined linker error using inlined functions

The linker is reporting multiply defined errors for an inline function. I have the following code in a header file: struct Port_Pin { volatile uint32_t * port_addr_set_value; //!< Writing the pin value here sets the pin to high. volatile uint32_t * port_addr_clr_value; //!< Writing the pin value to this port clear...

Compiling with gcc and debugging with greenhills debugger

I am a newbie to debugging. I compiled my project with gcc and i am trying to debug it with a greenhills debugger. when i try to debug it, i get an error "unreadable memory" in greenhills. Anyone know why and how to fix this error? Any help will be appreciated. Thanks. ...

Strange behavior for X.cpp/X.hpp files in Integrity

I'm having a project which compiles perfectly with gcc, but fails to compile under Greenhills Integrity environment. The problem boils down to this three files: MyVector.cpp // contains function testVector MyVector.hpp // contains template vector<> SomeFile.cpp MyVector.hpp contains template-class for a vector, and MyVector.cpp conta...

How to declare a C array that takes up all free space in a memory section?

Assume I have a 128KB memory region. In my linker directives I split this region into three sections: .section_text .section_data .section_bss The size of each section is unknown pre-compilation, but I have constrained .section_bss to use all remaining space within the memory region after .section_text and .section_data are allocate...