What is the process of compilation and linking in python?



What is the process of compilation and linking in python?..

Answer / 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

More Python Interview Questions

What is Python Decorator?

0 Answers  


What is python shell and idle?

0 Answers  


What’s your preferred text editor?

0 Answers  


What is the process to get the home directory using ‘~' in python?

0 Answers  


Do we need to call the explicit methods to destroy the memory allocated in python?

0 Answers  






Write a program to check whether the object is of a class or its subclass.

1 Answers  


Convert a string representation of list to list.

0 Answers  


Is python used for frontend or backend?

0 Answers  


Why is python good for machine learning?

0 Answers  


Is del the same as remove()? What are they?

0 Answers  


How would you display a file’s contents in reversed order?

0 Answers  


How memory is managed in python?

0 Answers  


Categories