Open fred5678 opened 5 years ago
Ok I found it. I have to modify the outreal_16_11 function.
Sorry I was out, so could not read your mail earlier
Op do 28 feb. 2019 om 15:54 schreef fred5678 notifications@github.com:
Ok I found it. I have to modify the outreal_16_11 function.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/JvanKatwijk/algol-60-compiler/issues/5#issuecomment-468302372, or mute the thread https://github.com/notifications/unsubscribe-auth/AITzwEzXYdRbb3mfL5-WirVG_rKcTfnaks5vR-26gaJpZM4bW3XT .
-- Jan van Katwijk
It is pretty easy to add a function to the algol environment, you do not have to recompile - or change - the compiler proper, just add a specification to the file "prelude". Of course you have to provide an implementation to the run time system. outreal_16_11 is a good example there
Op vr 1 mrt. 2019 om 15:02 schreef jan van katwijk j.vankatwijk@gmail.com:
Sorry I was out, so could not read your mail earlier
Op do 28 feb. 2019 om 15:54 schreef fred5678 notifications@github.com:
Ok I found it. I have to modify the outreal_16_11 function.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/JvanKatwijk/algol-60-compiler/issues/5#issuecomment-468302372, or mute the thread https://github.com/notifications/unsubscribe-auth/AITzwEzXYdRbb3mfL5-WirVG_rKcTfnaks5vR-26gaJpZM4bW3XT .
-- Jan van Katwijk
-- Jan van Katwijk
I copied outreal_16_11 to outreal_e_10 in prelude and runtime.c, but got an error message from jff-algol: Could not find outreal_e_10 (with and without recompiling)
Is the error message from the algol translator or the c compiler? can you send me the prelude
Op zo 3 mrt. 2019 om 17:07 schreef fred5678 notifications@github.com:
I copied outreal_16_11 to outreal_e_10 in prelude and runtime.c, but got an error message from jff-algol: Could not find outreal_e_10 (with and without recompiling)
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/JvanKatwijk/algol-60-compiler/issues/5#issuecomment-469036913, or mute the thread https://github.com/notifications/unsubscribe-auth/AITzwOptWD2VD-RO6lm0iJDEJSRqEbAOks5vS_MzgaJpZM4bW3XT .
-- Jan van Katwijk
I think it is the translator: $ jff-algol prog23.alg Analysis, line 50 (file prog23.alg):Could not find outreal_e_10 (only reported once) analysis prog23.alg complete, 1 errors Error code 256, compiling prog23.alg aborted after front end
With outreal_16_11 prog23.alg compiles correctly.
Did you reinstall the compiler? The file "prelude" is read from /usr/local/share/jff-a2c. with -p xxx you can select file xxx as alternative prefix file
Op ma 4 mrt. 2019 om 13:08 schreef fred5678 notifications@github.com:
I think it is the translator: $ jff-algol prog23.alg Analysis, line 50 (file prog23.alg):Could not find outreal_e_10 (only reported once) analysis prog23.alg complete, 1 errors Error code 256, compiling prog23.alg aborted after front end
With outreal_16_11 prog23.alg compiles correctly.
prelude.txt https://github.com/JvanKatwijk/algol-60-compiler/files/2926246/prelude.txt
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/JvanKatwijk/algol-60-compiler/issues/5#issuecomment-469230112, or mute the thread https://github.com/notifications/unsubscribe-auth/AITzwL_JYf9sgcRFHSBvriIZ-D2glstsks5vTQzSgaJpZM4bW3XT .
-- Jan van Katwijk
It is pretty easy to add a function to the algol environment, you do not have to recompile
I made make + sudo make install and suddenly it works ;-)
that is how it should be
thanks for the info
Op ma 4 mrt. 2019 om 14:29 schreef fred5678 notifications@github.com:
It is pretty easy to add a function to the algol environment, you do not have to recompile
I made make + sudo make install and suddenly it works ;-)
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/JvanKatwijk/algol-60-compiler/issues/5#issuecomment-469252899, or mute the thread https://github.com/notifications/unsubscribe-auth/AITzwD24NxXj1ETYCOctiHUFJovHYpYuks5vTR-ggaJpZM4bW3XT .
-- Jan van Katwijk
How can I format the real or integer output like printf? I can't find any hint in the report.