FPC 3.2.2 - How to: compile without RTTI Information's ? lazarus / 21-General ---------------------------------------------------------------------- paule32 · 2024-03-08 14:27 Hello, currently FPC compile RTTI into .EXE image. Is it possible, and then how, to compile without RTTI ? ---------------------------------------------------------------------- rvk · 2024-03-08 15:41 Maybe some suggestions here: https://forum.lazarus.freepascal.org/index.php?topic=15880.0 ---------------------------------------------------------------------- PascalDragon · 2024-03-08 20:51 Quote from: paule32 on March 08, 2024, 03:27:47 pmHello, currently FPC compile RTTI into .EXE image. Is it possible, and then how, to compile without RTTI ? RTTI is an requirement for Object Pascal. So, no. ---------------------------------------------------------------------- rvk · 2024-03-08 20:55 Quote from: PascalDragon on March 08, 2024, 09:51:57 pmQuote from: paule32 on March 08, 2024, 03:27:47 pmHello, currently FPC compile RTTI into .EXE image. Is it possible, and then how, to compile without RTTI ? RTTI is an requirement for Object Pascal. So, no. I don't think paule32 uses normal Object Pascal but its own version of FPC sources. (At least, judging by the other topics) ---------------------------------------------------------------------- PascalDragon · 2024-03-08 21:04 Quote from: rvk on March 08, 2024, 09:55:45 pmI don't think paule32 uses normal Object Pascal but its own version of FPC sources. (At least, judging by the other topics) As far as I'm aware he only uses a custom RTL, not a custom compiler. ---------------------------------------------------------------------- rvk · 2024-03-08 21:07 Quote from: PascalDragon on March 08, 2024, 10:04:05 pmQuote from: rvk on March 08, 2024, 09:55:45 pmI don't think paule32 uses normal Object Pascal but its own version of FPC sources. (At least, judging by the other topics) As far as I'm aware he only uses a custom RTL, not a custom compiler. And the compiler needs to compile RTTI information into his custom RTL? Even when the custom RTL doesn't do Object Pascal? ---------------------------------------------------------------------- PascalDragon · 2024-03-08 21:08 The compiler does not care what the RTL does (as long as it provides the necessary functions). It will always generate all what Object Pascal requires, because that's what it is: an Object Pascal compilre. ---------------------------------------------------------------------- paule32 · 2024-03-08 23:19 yes, I am use custom RTL, but original sourced FPC 3.2.2. now, I stand for the Problem: when is the symbol: U_$SYSTEM_$$_TQUEUE_MEM_TEMP is created. In the source pascal file (system.pas): Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i type    TQueue = class(TObject)    end;var    TQueue_mem_temp: TQueue; so, I could add it manually by own. ---------------------------------------------------------------------- PascalDragon · 2024-03-10 21:10 The symbol U_$SYSTEM_$$_TQUEUE_MEM_TEMP is generated by the compiler due to you declaring the variable TQueue_mem_temp, because that is the symbol that represents the storage of the variable.