Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can FOR_C be customized?

customized for_c
0
Posted

Can FOR_C be customized?

0

Yes, by using preprocessing capabilities built into the translator. FOR_C also supports a custom statement to add proprietary generic and specific intrinsic functions to the standard F77 intrinsic table, built in to FOR_C. The FOR_C preprocessor is almost identical to that of C, with only minor differences to compensate for FORTRAN as the source language. The preprocessor is used to change C keyword names used in the FORTRAN as identifiers, to avoid conflict in the generated C source. It can also be used to turn unsupported proprietary FORTRAN statements into either comments or literal lines that pass through the translator untouched, thus allowing you to delay the changes until later. The preprocessor can also be used to rename a user’s FORTRAN library to a similar C library at translation time. In general, anything that can be done with a C macro can be done with the FOR_C preprocessor – plus more! If further customizations are needed, additional utilities like AWK (available with UN

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.