platform-independent code

noun
UK /ˈplætfɔːm ˌɪndɪˈpendənt kəʊd/
US /ˈplætfɔːrm ˌɪndɪˈpendənt koʊd/

Code that can run on many different kinds of computers without changes.

The team wrote platform-independent code so the app works on phones and laptops alike.


OTHER MEANINGS

2. Software source code that avoids features tied to one operating system or processor.

By sticking to standard libraries, she kept the project's platform-independent code easy to move.

3. Code designed to behave the same way across different devices and environments.

Platform-independent code helped the game launch on consoles and desktops on the same day.

4. A programming style that separates logic from system-specific details.

Their platform-independent code kept the drawing logic apart from the windowing system.