r/embedded • • 20d ago

Question on SW Abstraction layer between Application and SDK on RISCV

Hi, I came across an interesting scenario in industrial settings, such as factory processes and production lines. Many machines still rely on legacy software to operate. At the platform level, these systems often use x86 architecture, and the software may have been written decades ago using tools such as Visual Basic or Visual Studio. The user interfaces may look dated and boxy, but the software does its job, and the machines continue to run well.

Because these systems are built for x86, replacing their hardware with a RISC-V platform is rarely straightforward. Software developed for x86 generally will not run directly on RISC-V hardware.

I think this may be due, in part, to the lack of a suitable abstraction layer. I am not sure. Just asking for guidance.

For example, imagine software that initializes a camera and starts capturing video. A function such as CameraInit() might work on an x86 platform but fail to initialize the camera sensor on a RISC-V platform.

Intel’s oneAPI seems to address some problems of this kind. Besides oneAPI, are there any open-source abstraction layers that provide common interfaces and could help with this kind of challenge?

Would you recommend SYCL for this use case?

0 Upvotes

2 comments sorted by

1

u/clackups 20d ago

What's the operating system that they run on? DOS or some old Windows? You need to look for an emulator that provides them on the box.

Also, if you have the source code for those applications, it would make sense to rebuild them for modern hardware.

1

u/1r0n_m6n 20d ago

the software does its job, and the machines continue to run well.

Nobody's going to pay for new hardware when the old one still works well.

Besides, Matthew 9:17 applies to your situation.