C++ for the PCU

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/osmocom-net-gprs@lists.osmocom.org/.

Holger Hans Peter Freyther hfreyther at sysmocom.de
Tue Jul 30 08:20:48 UTC 2013


On Tue, Jul 30, 2013 at 11:50:23AM +0400, Alexander Chemeris wrote:
> Hi Holger,
> 
> Do you have a clear idea what could be done easier/better/safer with
> C++ in this case? I general I'm a big fan of C++ because it's easier
> to write safe/better code, but in this exact case we're already deep
> into C style and I'm not sure we could change that with a reasonable
> amount of effort. If you have concrete proposals, please send them for
> discussion. Otherwise I agree that we should change the code to be
> pure C, even though I don't like C.

I would convert the C modules to C. In terms of C++ I still wonder
how it could help. E.g. bitvec could be a C++ class. Then we would
have the 23bytes on the stack (maybe one template instantiation for
the case of 23 bytes)... but given the state of things C might just
be the easiest route.

-- 
- Holger Freyther <hfreyther at sysmocom.de>       http://www.sysmocom.de/
=======================================================================
* sysmocom - systems for mobile communications GmbH
* Schivelbeiner Str. 5
* 10439 Berlin, Germany
* Sitz / Registered office: Berlin, HRB 134158 B
* Geschaeftsfuehrer / Managing Directors: Holger Freyther, Harald Welte





More information about the osmocom-net-gprs mailing list