Sign in

username:

password:



Not a member?

Search basicx



Search tips

Subscribe to basicx



basicx by Keywords

Accelerometer | ADC | ADXL | Adxl20 | AVR | BasicStamp | BX-35 | BX28 | BX35 | COM3 | Compiler | Downloader | EEPROM | Electromagnet | GetADC | GP2D1 | GPS | I2C | IDE | Keypad | LCD | LCD+ | MIDI | Motors | Multitasking | Netmedia | Networking | PCB | PID | PlaySound | PWM | Relays | RTC | Servo | ShiftOut | SitePlayer | SPI | Stack | Timer | USB

Ads

Discussion Groups

Discussion Groups | BasicX | Compiler question

Discussion forum for the BasicX family of microcontroller chips.

Compiler question - Victorf - Mar 14 6:55:00 2000

If one includes SerialPort_24.bas in a project and uses, say, 2 routines in
it, is it reasonable to assume that the compiler includes code only for the
two used routines?

Just curious.

Vic
_________________________________________

Victor Fraenckel
Home of the WindReader Electronic Theodolite
Read the WIND






(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )


Re: Compiler question - Frank Manning - Mar 14 13:10:00 2000

> From: "Victorf" <>
>
> If one includes SerialPort_24.bas in a project and uses, say,
> 2 routines in it, is it reasonable to assume that the
> compiler includes code only for the two used routines?

Yes, that's correct, unless those 2 subprograms call other subprograms in
the module.

This applies to all subprograms -- the compiler culls any that are never
called, regardless of whether the optimizer is turned on.

You can look at the MPP map file to get a list of subprograms that are
actually included in a program. The list is toward the bottom of the file,
and also includes subprograms from the system library.

-- Frank Manning
-- NetMedia, Inc.




(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )