What is the process of compilation and linking in python?

Answer Posted / chaitanya

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 and will rebuild the interpreter. The steps that is required in this as:

• Create a file with any name and in any lanugage that is 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 that is 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’.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a program interpreter?

458


How do you use isalpha in python?

450


What is difference between set and list in python?

432


Who uses python?

462


Is python a procedural language?

431






Does Python support strongly for regular expressions? What are the other languages that support strongly for regular expressions?

537


How can we make forms in python?

454


What are the benefits of using python?

447


What made you to choose python as a programming language?

476


Are Tuples immutable?

479


Explain python is one line?

462


explain the filter() function?

493


Please explain what are the rules for local and global variables in python?

454


What is __ main __ in python?

429


What is complex type in python?

494