SW006013 Microchip Technology, SW006013 Datasheet - Page 40

MPLAB C Compiler For DsPIC DSCs

SW006013

Manufacturer Part Number
SW006013
Description
MPLAB C Compiler For DsPIC DSCs
Manufacturer
Microchip Technology
Series
DsPIC30F/33Fr
Type
MPLAB® C Compilerr
Datasheet

Specifications of SW006013

Supported Families
DsPIC30F, DsPIC33F
Core Architecture
DsPIC
Kit Contents
Software And Docs
Mcu Supported Families
DsPIC30F And DsPIC33F
Tool Function
Compiler
Tool Type
Compiler
Processor Series
dsPIC
Lead Free Status / RoHS Status
na
For Use With/related Products
dSPIC DSCs
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
DS51456E-page 36
SIGSEGV
Description:
Include:
Prototype:
Remarks:
Example:
SIGTERM
Description:
Include:
Prototype:
Remarks:
Example:
Signals invalid access to storage.
<signal.h>
#define SIGSEGV
SIGSEGV is used as an argument for raise and/or signal. When
used, the default behavior is to print an invalid storage request mes-
sage and terminate the calling program. This may be overridden by a
user function that defines the signal handler actions. See signal for
an example of a user defined function.
#include <signal.h> /* for raise, SIGSEGV */
#include <stdio.h> /* for printf */
int main(void)
{
}
Output:
SEGV
Explanation:
SEGV stands for “invalid storage access”.
Signals a termination request
<signal.h>
#define SIGTERM
SIGTERM is used as an argument for raise and/or signal. When
used, the default behavior is to print a termination request message
and terminate the calling program. This may be overridden by a user
function that defines the signal handler actions. See signal for an
example of a user defined function.
#include <signal.h> /* for raise, SIGTERM */
#include <stdio.h> /* for printf */
int main(void)
{
}
Output:
TERM
Explanation:
TERM stands for “termination request”.
raise(SIGSEGV);
printf("Program never reaches here.");
raise(SIGTERM);
printf("Program never reaches here.");
© 2008 Microchip Technology Inc.

Related parts for SW006013