What is the difference between Static and Dynamic Binding?
Moderators: Kalicharan, Moderator Group
-
- Member
- Posts: 2
- Joined: Thu May 31, 2012 8:30 pm
What is the difference between Static and Dynamic Binding?
-> What is the difference between Static and Dynamic Binding?
And let me know the situations where static Binding is required and where dynamic binding is required?
-> Which one is more beneficial?
And let me know the situations where static Binding is required and where dynamic binding is required?
-> Which one is more beneficial?
Asim
- dbzTHEdinosauer
- Moderator
- Posts: 981
- Joined: Mon Oct 02, 2006 8:31 pm
-
- Member
- Posts: 2
- Joined: Thu May 31, 2012 8:30 pm
- dbzTHEdinosauer
- Moderator
- Posts: 981
- Joined: Mon Oct 02, 2006 8:31 pm
It will be difficult (if even possible) to provide "pinpoint" answers if such a thing does not exist. . .What is the difference between Static and Dynamic Binding?
I want pinpoint answers for these questions.
It appears you have used the wrong terminology.
Where have you heard of Static or Dynamic Binding? I've not heard of such a term.
There are static and dynamic program calls and there is static and dynamic sql, but static and dynamic binding . . .
This post does not constitute a belief of deeper knowledge
Just looking for clarification. . .
Have a good one
Static binding and Dynamic binding
Static binding is where the linker copies the referred to as operate into the program's executable image from the suitable library and resolves the references to the operate at compile/link time. The program contains a duplicate of the library operate and doesn't got to load it at run time.
Dynamic binding is where the linker inserts stub code into the program's executable image that references the suitable library. The library operate is then copied into memory at load or run time and references are resolved then. The program doesn't contain a duplicate of the library operate, and also the library should be accessible at load/run time.
and can also help you.
Dynamic binding is where the linker inserts stub code into the program's executable image that references the suitable library. The library operate is then copied into memory at load or run time and references are resolved then. The program doesn't contain a duplicate of the library operate, and also the library should be accessible at load/run time.
and can also help you.
Last edited by hash33 on Sun Jul 22, 2012 12:40 pm, edited 2 times in total.
- dbzTHEdinosauer
- Moderator
- Posts: 981
- Joined: Mon Oct 02, 2006 8:31 pm
that is not true.that references the suitable library
it only contains module entry point info for dynamic CALL.
library is never involved.
the library is listed in the step/job lib statement of the job during runtime.
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
Well, this is an IBM Mainframe Community Forum -- the original question, as worded, does not make any sense in zOS world.
"Static and Dynamic Binding" comes in to consideration when one talks about JAVA or C++ and this is not the correct forum for these terms.
Having said that, I do not get involved in such things but hash33 your answer is just a replica of this: http://wiki.answers.com/Q/What_is_the_d ... ic_binding
"Static and Dynamic Binding" comes in to consideration when one talks about JAVA or C++ and this is not the correct forum for these terms.
Having said that, I do not get involved in such things but hash33 your answer is just a replica of this: http://wiki.answers.com/Q/What_is_the_d ... ic_binding
Regards,
Anuj
Anuj
-
- Member
- Posts: 2
- Joined: Wed Jun 20, 2012 9:24 pm
yes this is in c++ language and it depends when the binding happens: at compile time (static) or at runtime (dynamic). Static binding is used when you call a simple class method. When you start dealing with class hierarchies and virtual methods, compiler will start using so called VTABLEs. At that time the compiler doesn't know exactly what method to call and it has to wait until runtime to figure out the right method to be invoked (this is done through VTABLE). This is called dynamic binding .
Last edited by timitiwinkle on Sun Jun 24, 2012 8:20 pm, edited 1 time in total.
- dbzTHEdinosauer
- Moderator
- Posts: 981
- Joined: Mon Oct 02, 2006 8:31 pm
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
I'm not sure if I got you wrong but this link has some details: http://www-142.ibm.com/software/products/in/en/czos/NicC wrote:C++ on the mainframe? Is this true?
Regards,
Anuj
Anuj
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page