thiemann 0 Report post Posted November 21, 2004 Bug description: The BoostC compiler is making unions tool large. It makes them the same size as a structure. Steps to reproduce: 1.) Create a new project 2.) Add a main.c file to the project with the following code union TEST { int x1; int x2; int x3; int x4; int x5; }; union TEST w; void main() { } 3.) Compile and link the project using BoostC 4.) Notice the compiler reports that 10 bytes of RAM are used when only 2 bytes should be used. Expected behavior: Only 2 bytes of RAM should be used. Is the problem 100% reproducible: Yes SourceBoost version: 5.7 Compiler: BoostC Compiler version: 1.7 Alpha OS: Windows XP Comments: None Quote Share this post Link to post Share on other sites
Dave 0 Report post Posted November 22, 2004 thiemann, I have had a look at this one. Quite right there is a problem here - looks like compiler is generating wrong size for this new data type - so I'm in the clear on this as I only work on linker, its a little job for Pavel Regards Dave Quote Share this post Link to post Share on other sites
Pavel 0 Report post Posted November 23, 2004 Fixed. Fix will be available in 1.8 release Regards, Pavel Quote Share this post Link to post Share on other sites