John Tytgat wrote: > In message <[EMAIL PROTECTED]> > Stefan Bellon <[EMAIL PROTECTED]> wrote:
> > The file system.ads should be present inside > > !GCC/lib/gcc/arm-unknown-riscos/4.1.1/<runtime>/adainclude/ where > > <runtime> should be the name of the runtime version. > I have an adainclude (and adalib) straight under 4.1.1. I don't see > any sign of a <runtime> subdir in the native RISC OS build, nor in the > working cross-compile build. Ah, perhaps this directory level is only introduced if there are multiple runtimes to chose from and that the directory level is omitted if there is only one runtime available. > And yes, "ads.system" (suffix swapped!) is there under adainclude. And the GCC knows how to swap the ads extension the "RISC OS" way? > > GNU/Linux and Windows offer rts-native (with zero-cost exception > > handling) and rts-sjlj (with setjump-longjump exception handling). > > I do not know that's possible on RISC OS in this respect. When > > configuring the GCC one can specify which runtime to build. > If I understand this stuff a bit, it's the zero-cost exception > handling which is used: > --8<-- > recipe/files/gcc/ada/system-riscos-arm.ads: ZCX_By_Default : > constant Boolean := True; > recipe/files/gcc/ada/system-riscos-arm.ads: GCC_ZCX_Support : > constant Boolean := True; > recipe/files/gcc/ada/system-riscos-arm.ads: Front_End_ZCX_Support : > constant Boolean := False; > --8<-- Yes, this looks very much like zero-cost exception handling. > > Please note: I have never built a GNAT for RISC OS, only for > > Solaris, GNU/Linux and a MinGW cross-compiler hosted on GNU/Linux, > > so I do not know about RISC OS specific things. > But but but... you probably know then much more than I do ! Don't assume too much! > Two questions: > 1. I would like to get debug output where GNAT is looking for > system.adb. I think I want to set the debug option 'dl' (as system.ads, not system.adb. There is no system.adb. > mentioned in debug.adb) but I simply fail to see how I can specify > this on the command line. Or won't dl help me ? Oh, that's easy, just do *gcc -gnatdl -c hello.adb You can enable the debug flags with -gnatdxxxxx and putting the character codes for the flags as xxxxx. But I'm not sure whether that helps in this case. You can as well call gnatmake instead of gcc. Not sure whether this should make a difference here. *gnatmake hello.adb > 2. If I would upload the native RISC OS build, would you have time to > have a look to see what possibly is missing ? And/or to review the > Ada changes I made ? Yes, I'm willing to look at whatever you have. Greetings, Stefan -- Stefan Bellon _______________________________________________ GCCSDK mailing list [email protected] Bugzilla: http://www.riscos.info/bugzilla/index.cgi List Info: http://www.riscos.info/mailman/listinfo/gcc Main Page: http://www.riscos.info/index.php/GCCSDK
