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.

Who is viewing this page
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. Andreas Mykonios
  2. Friday, 28 June 2024 07:05 AM UTC
Hi Miguel. Machine code can result to an exe with dll's... In the other hand, you can also create a single exe using p-code.

Andreas.
  1. Helpful 2
  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 1
  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
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.