SW006013 Microchip Technology, SW006013 Datasheet - Page 38

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 34
SIGABRT
Description:
Include:
Prototype:
Remarks:
Example:
SIGFPE
Description:
Include:
Prototype:
Remarks:
Example:
Name for the abnormal termination signal.
<signal.h>
#define SIGABRT
SIGABRT represents an abnormal termination signal and is used in
conjunction with raise or signal. The default raise behavior
(action identified by SIG_DFL) is to output to the standard error stream:
See the example accompanying signal to see general usage of sig-
nal names and signal handling.
#include <signal.h> /* for raise, SIGABRT */
#include <stdio.h> /* for printf */
int main(void)
{
}
Output:
ABRT
Explanation:
ABRT stands for “abort”.
Signals floating-point error such as for division by zero or result out of
range.
<signal.h>
#define SIGFPE
SIGFPE is used as an argument for raise and/or signal. When
used, the default behavior is to print an arithmetic error message and
terminate the calling program. This may be overridden by a user func-
tion that defines the signal handler actions. See signal for an exam-
ple of a user defined function.
#include <signal.h> /* for raise, SIGFPE */
#include <stdio.h> /* for printf */
int main(void)
{
}
Output:
FPE
Explanation:
FPE stands for “floating-point error”.
raise(SIGABRT);
printf("Program never reaches here.");
raise(SIGFPE);
printf("Program never reaches here");
abort - terminating
© 2008 Microchip Technology Inc.

Related parts for SW006013