NOREGPARMS

Abbreviation

None.

Arguments

None.

Default

REGPARMS

Description

The NOREGPARMS directive forces all function arguments to be passed in fixed memory areas. This directive generates parameter passing code which is compatible with the earlier versions of the C51 compiler, and Intel’s PL/M-51.

NOTE

You may specify both the REGPARMS and NOREGPARMS directives several times within a source program. This allows you to create some program sections with register parameters and other sections using the old style of parameter passing. You should use NOREGPARMS to access existing older assembler functions or library files without having to reassemble or recompile them. For example:

#pragma NOREGPARMS /* Using old method */
extern int old_func (int, char);

#pragma REGPARMS /* Using new method */
extern int new_func (int, char);

main () {
    char a;
    int x1, x2;
    x1 = old_func (x2, a);
    x1 = new_func (x2, a);
}

See Also

REGPARMS

Example


#pragma NOREGPARMS