[fpc-devel] FPC related fairy tale
Hello together! Over the past weeks I've spent some time on getting something to work in FPC and now I'm about to commit this either this evening or at least this weekend (depending on the time I have). Now I thought that I'd make a little test to see how good you know FPC and thus I've written a little fairy tale which is more or less loosely based on the work I've done. One important note beforehand though: it may sound as if I'm critizing some actions of the other FPC core devs in this tale, but this is definitely NOT my intention, so take the story not too seriously, please ;) [and also keep in mind, please, that I'm not a native English speaker...] Here it is: Once upon a time there was a small kingdom ruled by a kind king. The king had two daughters and more children were planned to come. But the king had already problems to find approbiate rooms for his second child. So he ordered his mages to reconstruct the castle in a way that the ever-growing family can easily be accommodated. The mages immediately began with their work and reshaped the castle with their spells. But as the work on the castle neared its completion a terrible accident happend to the second princess when she played between the working mages. She was no longer able to walk or even sit upright without support. The mages tried their best to heal her, but in the end they needed to finish the castle so that the royal family could have their home back before the winter strikes. But even after the castle had been finished they didn't have enough time for the disabled princess as the family had already grown during the mages' work and required their full attention. And so the days and months passed by in which the second daughter of the king was confined to her room and could not join in the family's activities. Then one day a young mage came along and joined the mages of the castle. He helped them with maintaining the magically enhanced castle, but while searching for places to fix and further extend he stumpled upon the room of the isolated princess. He felt sorry for the girl's state and although he did not know much about healing magic he decided to improve his knowledge and help the her. So he spent the evenings after his normal work at the castle in the library and looked through the books about healing magic. Sometimes he then went to the princess' chamber and applied his newly learned knowledge. After some weeks his work finally paid off and the girl was able to feel and move her legs again. And after some more time she was finally able to walk again. Although she needed to move slowly and with the help of crutches, she was finally able to take part in the life at the castle again. The young mage continued to heal her and they all lived happily ever after. So... now I'm curious what you think I have worked on and I'm also curious whether someone can fully decipher that little story. :) Regards, Sven ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
RE: [fpc-devel] FPC related fairy tale
Are you resurrecting m68k port? Just a guess, of course... Pierre Muller -Message d'origine- De : fpc-devel-boun...@lists.freepascal.org [mailto:fpc-devel- boun...@lists.freepascal.org] De la part de Sven Barth Envoyé : jeudi 18 octobre 2012 13:13 À : FPC developers' list Objet : [fpc-devel] FPC related fairy tale Hello together! Over the past weeks I've spent some time on getting something to work in FPC and now I'm about to commit this either this evening or at least this weekend (depending on the time I have). Now I thought that I'd make a little test to see how good you know FPC and thus I've written a little fairy tale which is more or less loosely based on the work I've done. One important note beforehand though: it may sound as if I'm critizing some actions of the other FPC core devs in this tale, but this is definitely NOT my intention, so take the story not too seriously, please ;) [and also keep in mind, please, that I'm not a native English speaker...] Here it is: Once upon a time there was a small kingdom ruled by a kind king. The king had two daughters and more children were planned to come. But the king had already problems to find approbiate rooms for his second child. So he ordered his mages to reconstruct the castle in a way that the ever-growing family can easily be accommodated. The mages immediately began with their work and reshaped the castle with their spells. But as the work on the castle neared its completion a terrible accident happend to the second princess when she played between the working mages. She was no longer able to walk or even sit upright without support. The mages tried their best to heal her, but in the end they needed to finish the castle so that the royal family could have their home back before the winter strikes. But even after the castle had been finished they didn't have enough time for the disabled princess as the family had already grown during the mages' work and required their full attention. And so the days and months passed by in which the second daughter of the king was confined to her room and could not join in the family's activities. Then one day a young mage came along and joined the mages of the castle. He helped them with maintaining the magically enhanced castle, but while searching for places to fix and further extend he stumpled upon the room of the isolated princess. He felt sorry for the girl's state and although he did not know much about healing magic he decided to improve his knowledge and help the her. So he spent the evenings after his normal work at the castle in the library and looked through the books about healing magic. Sometimes he then went to the princess' chamber and applied his newly learned knowledge. After some weeks his work finally paid off and the girl was able to feel and move her legs again. And after some more time she was finally able to walk again. Although she needed to move slowly and with the help of crutches, she was finally able to take part in the life at the castle again. The young mage continued to heal her and they all lived happily ever after. So... now I'm curious what you think I have worked on and I'm also curious whether someone can fully decipher that little story. :) Regards, Sven ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] FPC related fairy tale
On Thu, 18 Oct 2012, Sven Barth wrote: Hello together! Over the past weeks I've spent some time on getting something to work in FPC and now I'm about to commit this either this evening or at least this weekend (depending on the time I have). Now I thought that I'd make a little test to see how good you know FPC and thus I've written a little fairy tale which is more or less loosely based on the work I've done. One important note beforehand though: it may sound as if I'm critizing some actions of the other FPC core devs in this tale, but this is definitely NOT my intention, so take the story not too seriously, please ;) [and also keep in mind, please, that I'm not a native English speaker...] Hm. I've been on the core team since a very long time, but I don't have a clue what this is about. I can think of several things that could apply, but the story really doesn't give clear hints - well, not to me at least. (but then, I've never been good at symbolics) Michael. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] FPC related fairy tale
In our previous episode, Sven Barth said: Once upon a time there was a small kingdom ruled by a kind king. The king had two daughters and more children were planned to come. But the king had already problems to find approbiate rooms for his second child. King=Borland children=Delphi and Kylix So he ordered his mages to reconstruct the castle in a way that the ever-growing family can easily be accommodated. reconstruction=CLX? (or Firemonkey?) The mages immediately began with their work and reshaped the castle with their spells. But as the work on the castle neared its completion a terrible accident happend to the second princess when she played between the working mages. She was no longer able to walk or even sit upright without support. End of support of Kylix. The mages tried their best to heal her, but in the end they needed to finish the castle so that the royal family could have their home back before the winter strikes. But even after the castle had been finished they didn't have enough time for the disabled princess as the family had already grown during the mages' work and required their full attention. And so the days and months passed by in which the second daughter of the king was confined to her room and could not join in the family's activities. Then one day a young mage came along and joined the mages of the castle. He helped them with maintaining the magically enhanced castle, but while searching for places to fix and further extend he stumpled upon the room of the isolated princess. Mage is Lazarus/freepascal, helping old Kylixers to migrate, and remove their codebase from being iced/isolated. spent the evenings after his normal work at the castle in the library and looked through the books about healing magic. Sometimes he then went to the princess' chamber and applied his newly learned knowledge. After some weeks his work finally paid off and the girl was able to feel and move her legs again. A Kylix codebase compiles/starts to work with FPC/Lazarus Although she needed to move slowly and with the help of crutches Crutches=libc unit obviously ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] FPC related fairy tale
On 10/18/2012 01:24 PM, Pierre Free Pascal wrote: Are you resurrecting m68k port? PLEEEAAASE ! -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] FPC related fairy tale
On 10/18/2012 01:35 PM, Marco van de Voort wrote: Crutches=libc unit obviously But Wine stuff dumped :) -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
RE: [fpc-devel] FPC related fairy tale
Is it about fpc and unit loading? ;) Regards, Zilvinas Ledas___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] FPC related fairy tale
On Thu, October 18, 2012 13:57, Jonas Maebe wrote: On 18 Oct 2012, at 13:13, Sven Barth wrote: Once upon a time there was a small kingdom ruled by a kind king. The . . again. The young mage continued to heal her and they all lived happily ever after. I guess it's about one of the branches at http://svn.freepascal.org/svn/fpc/branches/ that was abandoned in a half-working state by two (core) developers and that you now fixed, but I have no idea about which one :) I'd guess for one of the left-overs from the 1.0 - 2.0 transition (on the compiler side). Since I've never been involved so deeply in the compiler area, I can't remember the topic well, but I can remember repeated references to a need for rewrite of one of compiler parts - possibly something related to PPU loading / writing? Tomas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] FPC related fairy tale
On 18 Oct 2012, at 15:22, Tomas Hajny wrote: I'd guess for one of the left-overs from the 1.0 - 2.0 transition (on the compiler side). Since I've never been involved so deeply in the compiler area, I can't remember the topic well, but I can remember repeated references to a need for rewrite of one of compiler parts - possibly something related to PPU loading / writing? Possibly, yes. Both Peter and I worked on that. And I believe Sven mentioned in the past he needed it for some generics-related functionality as well. Jonas___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] FPC related fairy tale
18.10.12, 21:29, Jonas Maebe wrote: On 18 Oct 2012, at 15:22, Tomas Hajny wrote: I'd guess for one of the left-overs from the 1.0 - 2.0 transition (on the compiler side). Since I've never been involved so deeply in the compiler area, I can't remember the topic well, but I can remember repeated references to a need for rewrite of one of compiler parts - possibly something related to PPU loading / writing? Possibly, yes. Both Peter and I worked on that. And I believe Sven mentioned in the past he needed it for some generics-related functionality as well. I also think that should be something generics related since Sven is working on them last time (as well as on record helpers for simple types). Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
RE: [fpc-devel] -i and -Cp
PS: Trunk for sparc is currently broken (I added some checks related to nostackframe modifier, ad some CPU do not conform to the idea that the stacksize should be zero in that case...) Thanks, noted. Yell when you want me to test something. This should now be fixed... If you have time to test it, it would be great. Pierre -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
[fpc-devel] Re: FPC related fairy tale
Am 18.10.2012 13:13, schrieb Sven Barth: Over the past weeks I've spent some time on getting something to work in FPC and now I'm about to commit this either this evening or at least this weekend (depending on the time I have). Now I thought that I'd make a little test to see how good you know FPC and thus I've written a little fairy tale which is more or less loosely based on the work I've done. One important note beforehand though: it may sound as if I'm critizing some actions of the other FPC core devs in this tale, but this is definitely NOT my intention, so take the story not too seriously, please ;) [and also keep in mind, please, that I'm not a native English speaker...] [snip] So... now I'm curious what you think I have worked on and I'm also curious whether someone can fully decipher that little story. :) Thank you all for your suggestions. I hadn't thought that my story is that unobvious, but at least one of you got it right. :D There were definitely some nice suggestions like the unit loading stuff (which is indeed on my longterm ToDo list if no one else beats me there ;) ). Generics and helpers are my usual topics, so those don't apply here as well (though you, Paul are in so far right that I'm currently also working on type helpers (proof of concept) and generic constraints (nearly Delphi compatible already)). Special thanks goes to Marco for indeed trying to decipher the story. But now the solution (I can't hold it back any longer myself ^^): Pierre was right. M68k is BACK! At least 2.7.1 is again able to generate working executables though currently only primitive programs do indeed work as I have encountered problems with the heap manager and stdio (though this could all be related to the fact that SetJmp/LongJmp is not implemented yet...). Also I'm currently only testing on QEMU's Coldfire emulation (cfv4e to be precise), but I also plan to test Aranym (which emulates a M68040) and to purchase myself a cfv4e development board (cause ARM isn't geeky enough anymore with all those cheap boards :P ). So I hope to get the compiler fully running at least for m68k-linux (natively) and maybe m68k-embedded (cross) and to maintain that state, but every other target (e.g. Amiga) will be up to contributors. And now you might be able to decipher the story a bit better :) (but I'm still eager to read suggestions) Regards, Sven ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Re: FPC related fairy tale
Sven Barth wrote: But now the solution (I can't hold it back any longer myself ^^): Pierre was right. M68k is BACK! Nicely done. but I also plan to test Aranym (which emulates a M68040) I was impressed by it, unpretentious but effective. The only /real/ 68k I've got is a Palm on alarm clock duty. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] FPC related fairy tale
Am 18.10.2012 13:24, schrieb Pierre Free Pascal: Are you resurrecting m68k port? Just a guess, of course... Too late, but it would have been my guess as well. The tale misses only the very sad part about the two children who never made it to life ;( ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
[fpc-devel] Re: FPC related fairy tale
On 18.10.2012 13:13, Sven Barth wrote: Over the past weeks I've spent some time on getting something to work in FPC and now I'm about to commit this either this evening or at least this weekend (depending on the time I have). I've now commited my changes, but currently the compiler for m68k can only be build from within an IDE (e.g. Lazarus) as the makefile immediately complains that ppcross68k is missing if I want to start a make cycle CPU_TARGET=m68k (or a make all CPU_TARGET=m68k). It works for other CPUs though... (besides the point that FPC currently can't cycle on a i386-linux...) Does anyone know what the problem could be for m68k? Regards, Sven ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Re: FPC related fairy tale
Am 18.10.2012 22:16, schrieb Sven Barth: On 18.10.2012 13:13, Sven Barth wrote: Over the past weeks I've spent some time on getting something to work in FPC and now I'm about to commit this either this evening or at least this weekend (depending on the time I have). I've now commited my changes, but currently the compiler for m68k can only be build from within an IDE (e.g. Lazarus) as the makefile immediately complains that ppcross68k is missing if I want to start a make cycle CPU_TARGET=m68k (or a make all CPU_TARGET=m68k). It works for other CPUs though... (besides the point that FPC currently can't cycle on a i386-linux...) Does anyone know what the problem could be for m68k? Wrong naming somewhere in the makefile? Anyways, here it stops with c:/fpc/svn/compiler/ppc.exe -Ur -Xs -O2 -n -Fum68k -Fusystems -Fuc:/fpc/svn/rtl/units/i386-win32 -Fi m68k -FE. -FUm68k/units/i386-win32 -dRELEASE-dm68k -dGDB -dBROWSERLOG -dNOOPT -Sew pp.pas cpupara.pas(52,90) Error: Identifier not found tcpuregisterset cpupara.pas(52,20) Error: There is no method in an ancestor class to be overridden: procedure get_v olatile_registers_int(tproccalloption):erroneous type; cpupara.pas(59,3) Fatal: There were 2 errors compiling module, stopping ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Re: FPC related fairy tale
Am 18.10.2012 22:20 schrieb Florian Klaempfl flor...@freepascal.org: Am 18.10.2012 22:16, schrieb Sven Barth: On 18.10.2012 13:13, Sven Barth wrote: Over the past weeks I've spent some time on getting something to work in FPC and now I'm about to commit this either this evening or at least this weekend (depending on the time I have). I've now commited my changes, but currently the compiler for m68k can only be build from within an IDE (e.g. Lazarus) as the makefile immediately complains that ppcross68k is missing if I want to start a make cycle CPU_TARGET=m68k (or a make all CPU_TARGET=m68k). It works for other CPUs though... (besides the point that FPC currently can't cycle on a i386-linux...) Does anyone know what the problem could be for m68k? Wrong naming somewhere in the makefile? The strange thing is that in my normal trunk checkout (which I don't work in) starts the cycle correctly as well... Oh well... Then it does indeed seem to work and I'm again confirmed in my opinion that computers are everything but deterministic... Anyways, here it stops with c:/fpc/svn/compiler/ppc.exe -Ur -Xs -O2 -n -Fum68k -Fusystems -Fuc:/fpc/svn/rtl/units/i386-win32 -Fi m68k -FE. -FUm68k/units/i386-win32 -dRELEASE-dm68k -dGDB -dBROWSERLOG -dNOOPT -Sew pp.pas cpupara.pas(52,90) Error: Identifier not found tcpuregisterset cpupara.pas(52,20) Error: There is no method in an ancestor class to be overridden: procedure get_v olatile_registers_int(tproccalloption):erroneous type; cpupara.pas(59,3) Fatal: There were 2 errors compiling module, stopping Doing line based commits needs to be learned... *sigh* Fixed in 22754 Regards, Sven ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] FPC related fairy tale
On 10/18/2012 07:13, Sven Barth wrote: So... now I'm curious what you think I have worked on and I'm also curious whether someone can fully decipher that little story. :) i don't konw, specifically, of what you speak but the story has been told many times since opensource reared its head... some things just, sadly, get forgotten about and/or left behind as all the newer fancy items get worked on and applied... ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Re: FPC related fairy tale
On 10/18/2012 13:22, Mark Morgan Lloyd wrote: Sven Barth wrote: But now the solution (I can't hold it back any longer myself ^^): Pierre was right. M68k is BACK! Nicely done. but I also plan to test Aranym (which emulates a M68040) I was impressed by it, unpretentious but effective. The only /real/ 68k I've got is a Palm on alarm clock duty. i assume that's a palm pilot? if so damn, that's sad for a device that lead the PID revolution :? ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel