c 11语言,c语言教学11(C language teaching 11).doc

c语言教学11(C language teaching 11)

c语言教学11(C language teaching 11)

Six compilation mode overview

Turbo C provides six compilation mode. The compilation mode is sometimes called addressing mode or

The memory model, because it is processing is how to process data in memory, stack allocation

The space and access them, these six kinds of mode: Micro mode tiny, mode small small, compact

In mode compact, mode medium, mode large, mode huge giant. Between them

The relationship is shown in the table.

Of small procedures, procedures

- - thought - Thought

Small data, micro, small, medium

Big data, compact, large, giant

The so-called small program is only one program, certainly not more than 64K bytes, default

The code pointer is near (function). The so-called big program is a program segment, each segment is not

More than 64K bytes, but the total amount of more than 64K bytes of program code pointer, the default is far. place

It is only a small data data segment, the default data pointer is near. The so-called big data

Is there a plurality of data segments, the default data pointer is far. The following will be talked about them one by one

The difference between and by the same procedure in six different output modes, to a

To further deepen the understanding of these six kinds of modes. But to emphasize one point: regardless of what kind of compiler

The Turbo C model, a single source file is not possible to generate more than 64K bytes of code, can

Generate static more than 64K bytes (including global data). For example, the following program:

Int a[15000], b[20000];

Void (main) {}

In any mode are not compiled. This is because the total storage capacity required up to two arrays

70K bytes. The compiler will be at a "Too much global data defined in file"

The error message. In order to deal with more than 64K bytes of code or static data, must be divided into several

A source file. In this example, the file can be divided into A1.C and A2.C, respectively

The giant model of the two compiled source files, finally c

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值