0 votes
in Python by
What is the process of compilation and linking in python?

1 Answer

0 votes
by

The compiling and linking allows the new extensions to be compiled properly without any error and the linking can be done only when it passes the compiled procedure. If the dynamic loading is used then it depends on the style that is being provided with the system. The python interpreter can be used to provide the dynamic loading of the configuration setup files.

The steps required are as follows:

- Create a file with any name and in any lanugage supported by the compiler of your system. For example comp.c

- Place this file in the Modules/ directory of the distribution which is getting used.

- Add a line in the file Setup.local present in the Modules/ directory.

- Run the file using spam comp.o

- After successful run of this rebuild the interpreter by using the make command on the top-level directory.

- If the file is changed then run rebuildMakefile by using the command as ‘make Makefile’.

Related questions

0 votes
asked Oct 27, 2022 in Python by SakshiSharma
0 votes
asked Feb 11, 2021 in Python by SakshiSharma
...