老古开发网首页
导航:老古开发网首页文章索引文章分类单片机→[C96控制项]
| -文章搜索 - 最新文章 - |

C96控制项

发布时间:2001年3月31日 点击次数:3565
来源:   作者:
 
C96控制项
编译器允许程序员使用控制项控制编译,以便灵活选择编译方式。在命令行中使用控制
项,要将其放在文件名后面,如:
c96 demo.c code xref mod196
1.目标文件控制项
1.1 optimize(n) n=0,1,2,3    缩写:ot(n)    缺省:ot(1)
n越大,代码越小,速度越快。
1.2 [no]debug    缩写:[no]db    缺省:nodebug
    在目标文件中嵌入行号等调试信息。
1.3 object(objfilename)/noobject    缩写:oj(objfilename) /nooj    缺省:oj
(source.obj)
指定目标文件名。
1.4 mod196    缩写:无    缺省:不使用
产生196代码。
1.5 [no]type    缩写:[no]ty    缺省:ty
    在目标文件中包含有关符号的类型信息。
2.列表文件控制项
2.1 print(lstfilename)/noprint    缩写:pr(lstfilename) /nopr    缺省:pr
(source.lst)
指定列表文件名。
2.2 pagewidth(n)    缩写:pw(n)    缺省:pw(120)
指定列表文件页宽。
2.3 pagelength(n)    缩写:pl(n)    缺省:pw(60)
指定列表文件页宽。
2.4 [no]symbol    缩写:[no]sb    缺省:nosb
    在列表文件中包含有关符号的类型信息。
2.5 [no]xref    缩写:[no]xr    缺省:noxr
    在列表文件中包含有关符号的交叉引用信息。
2.6 [no]listinclude    缩写:[no]lc    缺省:nolc
    在列表文件中列出包含文件。
2.7 [no]code    缩写:[no]co    缺省:noco
    在列表文件中列出目标文件汇编代码。
3.其他控制项
3.1 interrupt(funtionname=interruptnumber)
    指定中断向量。该指令可在文件内使用,参见下面例程:
#pragma interrupt (t1isr=0)
#include
int ijk;
void t1isr()

/*-------------------------------------------------------------------------
------------------------------------------------------
* Description: This routine is executed every time the timer 1 overflows.  
The timer 1 simply rolls over and continues to count.
*              The variables that make up the upper 16 bits of the time
value assigned to the digital HSI inputs are incremented.
*              If these values reach a set value, then the signal is
assumed to have stopped,
*              and the the values of 0 assigned to the corresponding
parameter.
*
* Inputs:      Void
*
* Outputs:     Void
*
*--------------------------------------------------------------------------
-----------------------------------------------------*/
/*
* This routine executes every timer 1 overflow
*/
        {
        ijk++;
        }

main(){
  int i;
  i=scanf();  
  }


欢迎进入老古论坛进行讨论
[单片机] 相关文章:
关于通用汉字库对应汉字的点阵提取的算法
简介:
我是否可以直接将UCDOS的HZK16直接烧制到芯片里采用同样的算法提取其点阵数据? 需要知道汉字的区位码,hzk16汉字点阵在文件中的偏移为 (94*(区码-1)+位码-1)*32 连续的32个字节既是汉字的行排列点阵 汉字的区位码算法: ((汉字的第一个字节-0xa1)*94+(汉字的第二个字节-0xa1))*32 区码=汉字的机器码高字节-A0 位码=汉字的机器码的低字节-A0 汉字文本文件读出的就是汉字的机器吗(用C语言或VB都能实现),两个字节 代表一个字的机器吗,高位在前,低位在后 如"啊"的区位码为1601,机器吗为B0A1(16进制) ......

C96工具
如何在c51中定义含有汉字的字符串?
 
下一个:[老古开发网公告]新增加BBS问答精选,一些常见的问题回答
简介:
......
 

上一个:[单片机]C51怎样在绝对地址定义变量呢?  

老古开发网版权所有 2006年9月 asp.Net V2.0 设计:老古
页面缓存:10分钟 执行时间:16毫秒