Whats the quickest way to set bits?


Closed Thread
Results 1 to 34 of 34

Hybrid View

  1. #1
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Charles Linquis View Post
    ....And one more thing - anyone who thinks that PBP is somehow not as good as 'C' can be told that it is running in an awful lot of very, very critical military applications. When written correctly, PBP is bulletproof.
    Hey, if it works for you and your customers are happy, go for it.

  2. #2
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default

    But I will still have to make the change sooner or later. That is, unless we can get Darrel to add functions, procedures, better string handling and a few other features to the next version of PBP!
    Charles Linquist

  3. #3
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default

    Charles, it is not about you saying that something is bulletproof or whether C (or other language) is better/worse than PBP (or anything else). It is about how easy/difficult it is to ensure (from a maintenance/validation standpoint) that the application/system is correct and how you can validate/test that is so.

    From the software perspective, you have discovered that as an application becomes more complex, it gets increasingly difficult to maintain (make changes, additions or corrections). As you have mentioned, languages having structured elements (such as functions, procedures, local and global variables, etc.) go a long way in making it so. Also, features such as pointers, structures, members and unions are very useful when dealing with complex data structures. These features are available in languages such as C.

    As for hardware, having the ability to do some form of in-circuit hardware debugging is extremely useful. The ability to single step through the firmware (at the source and/or debug level), set breakpoints, inspect memory and register values, change values on-the-fly, tracing, etc. can give you a view of what your system is actually doing that is difficult to impossible otherwise.

  4. #4
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default

    I only made the 'bulletproof' comment because although I write mostly in PBP, I have hired people that knew only 'C'. At first, they were totally convinced that a program written in BASIC was either very slow in execution, or lacked a lot of functionality, or was a "toy" for some other reason.

    After a couple of months, they realized their opinions were wrong. All of them learned PBP at least to some extent.

    I was trying to give a "pep talk" to all the other PBP coders out there.

    My heartburn with PBP is that it is difficult to write reusable code, and also the lack of easy debugging.
    Charles Linquist

  5. #5
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default

    Charles, if I (and even more importantly, my customers) are convinced that we have a serious (non-toy in your words), commercial grade MCU development toolchain that is considered bulletproof, I would not bother looking for anything else.

  6. #6
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by rmteo View Post
    Charles, if I (and even more importantly, my customers) are convinced that we have a serious (non-toy in your words), commercial grade MCU development toolchain that is considered bulletproof, I would not bother looking for anything else.
    Carefull rmteo,

    One of your customers might see that you spend an awfull lot of time on this toy compiler forum, and wonder if you are really programming their equipment with the bulletproof C. Sure you try to convert others here to the dark side on a regular basis, but is that just to disquise the fact you really like PicBasic better?
    http://www.scalerobotics.com

  7. #7
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by scalerobotics View Post
    Carefull rmteo,

    One of your customers might see that you spend an awfull lot of time on this toy compiler forum, and wonder if you are really programming their equipment with the bulletproof C. Sure you try to convert others here to the dark side on a regular basis, but is that just to disquise the fact you really like PicBasic better?
    Actually my customers don't give a hoot as to what I like - they only care about what they want. And as long as I give them what they want (on the terms and conditions we have mutually agreed upon) they really don't care what I do with my time - even if I decide to spend it on a toy compiler (your words) forum.

  8. #8
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    It all comes down to who is banging on the keyboard.

    I write crappy code no matter what language I use. I imagine folks like Darrel and Bruce write great code no matter what language they use.

    I also bet that Darrel and Bruce can write in Basic and blow even a good "C" coder out of the water.

    So if you like B, C, or what ever... use it. What is good for one is not necessarily good for another.
    Dave
    Always wear safety glasses while programming.

  9. #9
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default

    Sorry Dave, coding ability (or lack thereof) isn't the issue here.

  10. #10
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by rmteo View Post
    Sorry Dave, coding ability (or lack thereof) isn't the issue here.
    Darn, wrong again...
    But I coulda swore it was the code that made these things work like we want them to.

    Oh well, back to the drawing board.
    Dave
    Always wear safety glasses while programming.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts