Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - MANUAL question

(you are viewing a thread; or go back to list of threads)

MANUAL question (by Alex)
In the manual says: "LDmicro does not generate very efficient code; it is slow to execute, and
wasteful of flash and RAM....."

(do u mean the HEX file or the ansi C code is no very efficient?)


"...If your program is too big for the time, program memory, or data memory
constraints of the device that you have chosen then you probably won't
get an error. It will just screw up somewhere."

(you mean that there will always be an error for the time?)
Fri Sep 2 2016, 12:02:14
(no subject) (by Ihor Nehrutsa)
1)Yes, LDmicro does not generate very efficient code.
Universal program will always lose in performance in comparison with a specially designed program in C or Asm.
But I'm trying to make it more effective and faster.

For example:
* Added: Used hardware multiplication MUL, MULS, MULSU for AVR's.
* Added: Decrtement internal oparation.
Operation increment / decrement is used frequently in many places.
*Optimized algorithm for parallel branches in rungs.
*Optimized selection of bank and page in PICs.
*etc

2)If your program is too big for program memory or EPPROM or RAM data memory you get an error message.

3)If your program is too big for the cycle time, then it will work slower than you expected. Communication with the external environment may be destroyed. Cycle time can be unstable.
You can monitor stability and duration of cycle time with YPlcCycleDuty pin.

HEX file from ver2.3 in more cases is bigger then HEX in the
latest version of LDmicro.
Tue Sep 6 2016, 04:18:27
(no subject) (by Alex)
thank you very much for all your effort Ihor, this is a good program for us :) and you are making it better for us.
Tue Sep 6 2016, 09:49:06
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):