Re: [fpc-devel] Compiler development guides
- все Nothing wrong. I'm not offended. It was a perfectly normal answer for a stranger who comes running out of nowhere and says he wants to try something very difficult. ;-) Dmitriy Pomerantsev. 19.08.2020, 10:27, "J. Gareth Moreton via fpc-devel" :Sorry, I didn't mean to imply you were anovice, just a slight warning to be preparedwhen you dive into the code!Some documentation would be nice for thecompiler, but I'm not sure where to beginthere except maybe with outlining theindividual compiler stages (creating nodes,simplifying nodes, building target-specificassembly language, peephole optimisationetc.)Gareth aka. Kit ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
Re: [fpc-devel] Compiler development guides
- все Thanks, this might help. Dmitriy Pomerantsev. 19.08.2020, 10:25, "Christo Crause" : There are a couple of wiki pages with some information, see e.g. https://wiki.lazarus.freepascal.org/Porting_Free_Pascal and the links at the bottom of the page. It is unfortunately not very detailed and outdated, hence the advice to rather look at existing backend code. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
Re: [fpc-devel] Compiler development guides
Sorry, I didn't mean to imply you were a novice, just a slight warning to be prepared when you dive into the code! Some documentation would be nice for the compiler, but I'm not sure where to begin there except maybe with outlining the individual compiler stages (creating nodes, simplifying nodes, building target-specific assembly language, peephole optimisation etc.) Gareth aka. Kit On Tue 18/08/20 16:26 , "Dmitriy Pomerantsev" p...@yandex.ru sent: > Thanks for the warning, but I'm not new in programming. Just not familiar > with the Free Pascal source code. Dmitriy Pomerantsev. 18.08.2020, 17:47, > "J. Gareth Moreton via fpc-devel" : > > Writing compilers is a pretty specialised undertaking, so general guides > are rather hard to come by. > For FPC, your best bet is to study the source code of something that > already exists, make notes and > build from there. > > Gareth aka. Kit > ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
Re: [fpc-devel] Compiler development guides
On Tue, Aug 18, 2020 at 2:52 PM Dmitriy Pomerantsev via fpc-devel < fpc-devel@lists.freepascal.org> wrote: > Hello. Are there any guides for those who want to try adding something to > the compiler? For example, I would like to try making a new backend. Is > there some example template, etc? Or just other backend code examples? > There are a couple of wiki pages with some information, see e.g. https://wiki.lazarus.freepascal.org/Porting_Free_Pascal and the links at the bottom of the page. It is unfortunately not very detailed and outdated, hence the advice to rather look at existing backend code. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
Re: [fpc-devel] Compiler development guides
On 18/08/2020 15:39, Florian Klämpfl via fpc-devel wrote: > Best is to use an existing backend and ask questions here. The AArch64 backend should be fairly clean as a starting point. Jonas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
Re: [fpc-devel] Compiler development guides
Thanks for the warning, but I'm not new in programming. Just not familiar with the Free Pascal source code. Dmitriy Pomerantsev. 18.08.2020, 17:47, "J. Gareth Moreton via fpc-devel" :Writing compilers is a pretty specialised undertaking, so general guides are rather hard to come by.For FPC, your best bet is to study the source code of something that already exists, make notes andbuild from there.Gareth aka. Kit ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
Re: [fpc-devel] Compiler development guides
Writing compilers is a pretty specialised undertaking, so general guides are rather hard to come by. For FPC, your best bet is to study the source code of something that already exists, make notes and build from there. Gareth aka. Kit On Tue 18/08/20 14:39 , Florian Klämpfl via fpc-develfpc-de...@lists.freepascal.org sent: > Am 18.08.20 um 14:46 schrieb Dmitriy Pomerantsev via fpc-devel: > > > Hello. Are there any guides for those who want > to try adding something > > to the compiler? > > > > No, there aren't. > > > > > For example, I would like to try making a new > backend. > > Is there some example template, etc? Or just > other backend code examples? > > > Best is to use an existing backend and ask questions here. > > ___ > > fpc-devel maillist - fpc-devel@lists.freepascal.org > https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel > > > > > ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
Re: [fpc-devel] Compiler development guides
Am 18.08.20 um 14:46 schrieb Dmitriy Pomerantsev via fpc-devel: Hello. Are there any guides for those who want to try adding something to the compiler? No, there aren't. For example, I would like to try making a new backend. Is there some example template, etc? Or just other backend code examples? Best is to use an existing backend and ask questions here. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel