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
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
[fpc-devel] Compiler development guides
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? ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel