Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
50
Добавлен:
14.04.2015
Размер:
1.37 Mб
Скачать

Keil Software — Cx51 Compiler User’s Guide

89

 

 

Chapter 3. Language Extensions

The Cx51 compiler provides several extensions to ANSI Standard C to support the elements of the 8051 architecture. These include extensions for:

Memory Areas

Memory Types

Memory Models

Memory Type Specifiers

 

Variable Data Type Specifiers

3

 

Bit Variables and Bit-addressable Data

 

Special Function Registers

Pointers

Function Attributes

The following sections describe each of these in detail.

Keywords

To facilitate many of the features of the 8051, the Cx51 compiler adds a number of new keywords to the scope of the C language:

_at_

far

sbit

alien

idata

sfr

bdata

interrupt

sfr16

bit

large

small

code

pdata

_task_

compact

_priority_

using

data

reentrant

xdata

You may disable these extensions using the NOEXTEND control directive. Refer to “Chapter 2. Compiling with the Cx51” on page 17 for more information.

Соседние файлы в папке HLP