Skip to main content
improved language, made it more concise, nicer formatting
Source Link
Martin Maat
  • 18.7k
  • 3
  • 33
  • 59

I am writing drivers for different devices to work with my embedded system. Already for each deviceCurrently I write Driver Manuallyany new driver manually but now I want to make this automatic and infor the future if any devices added to my system I wantwould like to make it work just by settingautomate this using a settings file.
for achieving to this purpose I had find outfigure I have 2 options:

1- writing a generic code that parse setting file and do a appropriate behavior

2- writing a code generator that parse setting file and generate code from that with appropriate behavior

  1. write a single universal driver that reads the setting file and behaves accordingly;

  2. write a code generator that reads the setting file and generates code from that with appropriate behavior.

I want to know whichWhich one of themthese is athe better option for me and iswhy? Are there any otherbetter options still?

I am writing drivers for different devices to work with my embedded system. Already for each device I write Driver Manually but now I want to make this automatic and in the future if any devices added to my system I want to make it work just by setting file.
for achieving to this purpose I had find out 2 options:

1- writing a generic code that parse setting file and do a appropriate behavior

2- writing a code generator that parse setting file and generate code from that with appropriate behavior

I want to know which one of them is a better option for me and is there any other options?

I am writing drivers for different devices to work with my embedded system. Currently I write any new driver manually but for the future I would like to automate this using a settings file. I figure I have 2 options:

  1. write a single universal driver that reads the setting file and behaves accordingly;

  2. write a code generator that reads the setting file and generates code from that with appropriate behavior.

Which one of these is the better option and why? Are there any better options still?

added 299 characters in body
Source Link
Nader
  • 119
  • 4

I am writing drivers for developing some part of software there isdifferent devices to work with my embedded system. Already for each device I write Driver Manually but now I want to make this automatic and in the future if any devices added to my system I want to make it work just by setting file.
for achieving to this purpose I had find out 2 choices options:

1- writing a generic code that parse setting file and do a appropriate behavior

2- writing a code generator that parse setting file and generate code from that with appropriate behavior

I want to know when and where to usewhich one of them is a better option for me and is there any other options?

for developing some part of software there is 2 choices :

1- writing a generic code that parse setting file and do a appropriate behavior

2- writing a code generator that parse setting file and generate code from that with appropriate behavior

I want to know when and where to use one of them ?

I am writing drivers for different devices to work with my embedded system. Already for each device I write Driver Manually but now I want to make this automatic and in the future if any devices added to my system I want to make it work just by setting file.
for achieving to this purpose I had find out 2 options:

1- writing a generic code that parse setting file and do a appropriate behavior

2- writing a code generator that parse setting file and generate code from that with appropriate behavior

I want to know which one of them is a better option for me and is there any other options?

Post Closed as "Needs more focus" by gnat, Bart van Ingen Schenau, Laiv, Jörg W Mittag, Greg Burghardt
deleted 39 characters in body
Source Link
Nader
  • 119
  • 4

I am in middle of developing a software. for developing some part of software I havethere is 2 choices :

1- writing a generic code that parse setting file and do a appropriate behavior

2- writing a code generator that parse setting file and generate code from that with appropriate behavior

I want to know when and where to use one of them ?

I am in middle of developing a software. for developing some part of software I have 2 choices :

1- writing a generic code that parse setting file and do a appropriate behavior

2- writing a code generator that parse setting file and generate code from that with appropriate behavior

I want to know when and where to use one of them ?

for developing some part of software there is 2 choices :

1- writing a generic code that parse setting file and do a appropriate behavior

2- writing a code generator that parse setting file and generate code from that with appropriate behavior

I want to know when and where to use one of them ?

Source Link
Nader
  • 119
  • 4
Loading