30.10.2014 Views

o_195h4n6al16jb186b1b2qs7fgssa.pdf

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

k()to<br />

initialize the break value. If brk()returns -1, so does this function.<br />

If the incris zero, the current value of the global variable __curbrkis<br />

returned.<br />

If the incris non-zero, the function checks that the address<br />

(__curbrk+ incr) is less than the end address of the heap. If it is<br />

less, the global variable __curbrkis updated to that value, and the<br />

function returns the unsigned value of __curbrk.<br />

Otherwise, the function returns -1.<br />

See the description of brk().<br />

File: sbrk.c<br />

system<br />

Description: Execute a command.<br />

Include: <br />

Prototype: int system(const char *s);<br />

Argument: s command to be executed.<br />

Default Behavior: As distributed, this function acts as a stub or placeholder for<br />

your<br />

function. If sis not NULL, an error message is written to stdout and the<br />

program will reset; otherwise, a value of -1 is returned.<br />

File: system.c<br />

Standard C Libraries with Math Functions<br />

2004 Microchip Technology Inc. DS51456B-page 373<br />

time<br />

Description: Get the system time.<br />

Include: <br />

Prototype: time_t time(time_t *timer);<br />

Argument: timer points to a storage location for time<br />

Return Value: Returns the elapse time in seconds. There is no error return.<br />

Default Behavior: As distributed, if timer2 is not enabled,it is enabled in 32-bit<br />

mode. The<br />

return value is the current value of the 32-bit timer2 register. Except in<br />

very rare cases, this return value is not the elapsed time in seconds.<br />

File: time.c<br />

write<br />

Description: Write data to a file.<br />

Include: None<br />

Prototype: int write(int handle, void *buffer, unsigned int<br />

count);<br />

Argument: handle refers to an opened file<br />

Prototype: ký __builtin_mulus dài (const int p0,<br />

const ký int p1);<br />

Đối số: p0 nhơn<br />

p1 nhân<br />

Quay trở lại giá trị: Trả về giá trị số nguyên dài ký của p1 p0x sản phẩm.<br />

Assembler<br />

Điều hành / Máy<br />

Hướng dẫn:<br />

mul.us<br />

__builtin_muluu<br />

Mô tả: Chức năng tính toán p1 p0x sản phẩm. Đối số chức năng là<br />

số nguyên unsigned, và kết quả chức năng là một số nguyên dài không dấu.<br />

Các tùy chọn-Wconversionscan dòng lệnh được sử dụng để phát hiện<br />

chuyển đổi tín hiệu không mong muốn. Chức năng này hỗ trợ đầy đủ các<br />

giải quyết các chế độ của các hướng dẫn, bao gồm cả chế độ ngay lập tức cho<br />

toán hạng p1.<br />

Prototype: unsigned __builtin_muluu dài (const int p0,<br />

const int p1);<br />

Đối số: p0 nhơn<br />

p1 nhân<br />

Quay trở lại giá trị: Trả về giá trị số nguyên dài ký của p1 p0x sản phẩm.<br />

Assembler<br />

Điều hành / Máy<br />

Hướng dẫn:<br />

mul.uu<br />

dsPIC<br />

®<br />

Thư viện Công cụ Ngôn ngữ<br />

DS51456B trang 378 2004 Microchip Technology Inc<br />

__builtin_tblpage<br />

Mô tả: Chức năng trả về số trang bảng của đối tượng mà<br />

địa chỉ được đưa ra như một tham số. Đối số pmust là địa chỉ<br />

của một đối tượng trong một dữ liệu EE, PSV hay không gian bộ nhớ thực thi;<br />

nếu không một thông báo lỗi được sản xuất và biên soạn không. Xem<br />

các spaceattribute trong MPLAB®<br />

Hướng dẫn C30 C Compiler của người dùng.<br />

Nguyên mẫu: int __builtin_tblpage (const void * p);<br />

Đối số: p địa chỉ đối tượng<br />

Quay trở lại giá trị: Trả về số trang bảng của đối tượng có địa chỉ được cho là

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!