Search Results - MEL PICBASIC Forum


Search:

Type: Posts; User: Ioannis; Keyword(s):

Search: Search took 0.01 seconds.

  1. Replies
    29
    Views
    76,963

    Re: Better code check before compile?

    Interesting... This is easy to check I guess.

    Ioannis
  2. Replies
    29
    Views
    76,963

    Re: Better code check before compile?

    It is common to other languages too like C for example.

    Ioannis
  3. Replies
    29
    Views
    76,963

    Re: Better code check before compile?

    Agreed. This is easy to check, but above we stated other cases that are difficult to check.

    So a sub-without-return check in whole is not easy to implement. I suppose... Maybe Charles knows better...
  4. Replies
    29
    Views
    76,963

    Re: Better code check before compile?

    If you mean my example, OK, it is a not efficient one but I was trying to show that you can have many Returns from the same sub.

    Sure it can be made more compact or efficient, but still. Compiler...
  5. Replies
    29
    Views
    76,963

    Re: Better code check before compile?

    Or the reverse. Have one entry and multiple exits:



    gosub test

    ....

    test:
    if x=1 then
  6. Replies
    29
    Views
    76,963

    Re: Better code check before compile?

    Added to the above, no one can guarantee you that the software will always run, even with faults in it. MCU's can stop anytime and hardware must protect itself in that case.

    Now, regarding Subs,...
Results 1 to 6 of 6