Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to define "runtime" ?

Status
Not open for further replies.

akhil000

Newbie level 4
Newbie level 4
Joined
Dec 9, 2005
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,330
hi all,
how do we define "runtime"???? wht importance does it have when we say runtime errors, runtime libraries??

akhil000
 

Re: runtime

where "you define runtime"? in a C program? be more precise.
 

runtime

runtime is the time in which process is executed (have CPU).
If in this time any error happen said runtime error.
and runtime library is library which not linked at compiling time, but, it used when process is in runtime mode.

Regards
Davood
 

Re: runtime

by saying define i meant : explain the meaning of runtime,compiling, runtime error & runtime libraries....and not defining it in "C" code
 

Re: runtime

akhil000 said:
hi all,
how do we define "runtime"???? wht importance does it have when we say runtime errors, runtime libraries??

akhil000

Talking of "importance" it depends on cotext.
For example:
runtime libraries you wouldn't find by disassembing the executable file,
it also means that exe would "weight" less by size of the runlibs - calling holders space. It also whould be important - that in part of running code of runtime libraries the is no garantie that the code exist at all in some paricular machine,
if libs included in your file -you may don't care about it. If it's runtimes libs - you probably should check out if in particular machine there are needed runtimes libs.
And make case-hanldler on the case that there are no needed libs (for example displaing some text of what files (dlls, sys etc.) you need to run your app. and then safely exit)

The same about runtime errors - you should keep in mind that it's kind of errors that your compiler can not catch, yet they can appear while executing the prog.
For example in some case there can be some page falt or div by zero which you can not predict for sure. Yet if there are such a possibility you should case what your app. should do if that's the case.
 

runtime

runtime is the time when your compiled code gets executed . runtime errors - errors which were not detected at compilation time but appeared during run of compiled code.

runtime libraries - your compiled code needs other codes to execute . Let say if you use printf() function in your program , compiler should add the binary of the printf() to your program binary at compile time (static library linking) or put reference to that function within binary (dynamic library linking) - symbol pointing function to be called.
Some runtime errors could arise from improper usage of C such as poor casting from one type to another (mentoined by The Svin ) , buffer overflows when buffer bounds are not checked before access it, improper pointer usage ...

It is recommended to use lint or similar code consistency checker tool o your source code. It will provide much more warning than your favorite compiler . Also there are safer libraries which replace your compiler's to avoid flaws in your program.

There is a book "linkers and loaders" ...
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top