1. Mario Francisco Celleri
  2. PowerBuilder
  3. Thursday, 27 June 2024 22:29 PM UTC

Hi guys.

Can you explain me; whats the difference between P-Code and M-Code compile?.

 

What's the pros and cons; of each one?

 

Thanks and regards.

John Fauss Accepted Answer Pending Moderation
  1. Friday, 28 June 2024 01:02 AM UTC
  2. PowerBuilder
  3. # 1

Hi, Mario -

Please read the following topic from the Applications Techniques publication:

    https://docs.appeon.com/pb2022r3/application_techniques/Creating_an.html

Best regards, John

Comment
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Thursday, 27 June 2024 22:42 PM UTC
  2. PowerBuilder
  3. # 2

Machine code gives you a single EXE file, which can be nice for small applications, while P-code gives you a small exe and a bunch of PBD files. Machine code is very "picky" and I'd recommend using P-code for everything.

Machine code is supposed to optimize some loops and give more speed, but nowadays with SSD drives, I don't think the speed difference is worth it.

Comment
  1. Chris Pollach @Appeon
  2. Friday, 28 June 2024 15:26 PM UTC
Correct Andreas ... in M-Code compiles the PBL's become DLL's (not PBD's) and are the same functionality wise. M-Code compiles cannot be reverse engineering to get you the source code back whereas P-Code Apps can (using unsanctioned software - but, they do exist). For P-Code compiles though, the new PowerClient or PowerServer deployment models in newer Appeon PB versions defeat the "possible" source code reverse engineering. HTH
  1. Helpful 2
  1. Miguel Leeuwe
  2. Friday, 28 June 2024 19:54 PM UTC
Hi Andreas,

Yes you're right. I didn't think of that.
  1. Helpful
  1. Benjamin Gaesslein
  2. Monday, 1 July 2024 06:01 AM UTC
M-Code or not, any software running on an end-user's machine can be reverse engineered by anyone determined enough to do so. The only way to truly protect code from being reverse-engineered is not having it run on users' machines by offering it as Software-as-a-Service.
  1. Helpful 1
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.