Re: style question: breaking inline assembly lines

2023-06-14 Thread Gedare Bloom
On Tue, Jun 13, 2023 at 7:41 PM Chris Johns wrote: > > On 14/6/2023 10:20 am, Joel Sherrill wrote: > > > > > > On Tue, Jun 13, 2023, 4:43 PM Chris Johns > > wrote: > > > > On 14/6/2023 5:47 am, Joel Sherrill wrote: > > > > > > > > > On Tue, Jun 13, 2023

Re: style question: breaking inline assembly lines

2023-06-14 Thread Gedare Bloom
On Tue, Jun 13, 2023 at 8:51 AM Sebastian Huber wrote: > > On 13.06.23 00:04, Gedare Bloom wrote: > > "b _ARM_Exception_default\n" > > : > > -: [cpufsz] "i" (sizeof(CPU_Exception_frame)), > > - [cpuspoff] "i" (offsetof(CPU_Exception_frame, register_sp)), > > - [v7mlroff]

Re: style question: breaking inline assembly lines

2023-06-13 Thread Chris Johns
On 14/6/2023 10:20 am, Joel Sherrill wrote: > > > On Tue, Jun 13, 2023, 4:43 PM Chris Johns > wrote: > > On 14/6/2023 5:47 am, Joel Sherrill wrote: > > > > > > On Tue, Jun 13, 2023 at 9:51 AM Sebastian Huber > >

Re: style question: breaking inline assembly lines

2023-06-13 Thread Joel Sherrill
On Tue, Jun 13, 2023, 4:43 PM Chris Johns wrote: > On 14/6/2023 5:47 am, Joel Sherrill wrote: > > > > > > On Tue, Jun 13, 2023 at 9:51 AM Sebastian Huber > > sebastian.hu...@embedded-brains.de>> > > wrote: > > > > On 13.06.23 00:04, Gedare Bloom wrote: > > > "b

Re: style question: breaking inline assembly lines

2023-06-13 Thread Chris Johns
On 14/6/2023 5:47 am, Joel Sherrill wrote: > > > On Tue, Jun 13, 2023 at 9:51 AM Sebastian Huber > > > wrote: > > On 13.06.23 00:04, Gedare Bloom wrote: > >       "b _ARM_Exception_default\n" > >       : > > -    : [cpufsz] "i"

Re: style question: breaking inline assembly lines

2023-06-13 Thread Joel Sherrill
On Tue, Jun 13, 2023 at 9:51 AM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 13.06.23 00:04, Gedare Bloom wrote: > > "b _ARM_Exception_default\n" > > : > > -: [cpufsz] "i" (sizeof(CPU_Exception_frame)), > > - [cpuspoff] "i" (offsetof(CPU_Exception_frame,

Re: style question: breaking inline assembly lines

2023-06-13 Thread Sebastian Huber
On 13.06.23 00:04, Gedare Bloom wrote: "b _ARM_Exception_default\n" : -: [cpufsz] "i" (sizeof(CPU_Exception_frame)), - [cpuspoff] "i" (offsetof(CPU_Exception_frame, register_sp)), - [v7mlroff] "i" (offsetof(ARMV7M_Exception_frame, register_lr)), - [cpuvecoff] "J"

Re: style question: breaking inline assembly lines

2023-06-12 Thread Gedare Bloom
On Mon, Jun 12, 2023 at 4:03 PM Gedare Bloom wrote: > > On Mon, Jun 12, 2023 at 3:54 PM Joel Sherrill wrote: > > > > > > > > On Mon, Jun 12, 2023 at 4:50 PM Gedare Bloom wrote: > >> > >> On Mon, Jun 12, 2023 at 2:28 PM Joel Sherrill wrote: > >> > > >> > > >> > > >> > On Mon, Jun 12, 2023 at

Re: style question: breaking inline assembly lines

2023-06-12 Thread Gedare Bloom
On Mon, Jun 12, 2023 at 3:54 PM Joel Sherrill wrote: > > > > On Mon, Jun 12, 2023 at 4:50 PM Gedare Bloom wrote: >> >> On Mon, Jun 12, 2023 at 2:28 PM Joel Sherrill wrote: >> > >> > >> > >> > On Mon, Jun 12, 2023 at 3:10 PM Gedare Bloom wrote: >> >> >> >> We have a mix of ways to write inline

Re: style question: breaking inline assembly lines

2023-06-12 Thread Joel Sherrill
On Mon, Jun 12, 2023 at 4:50 PM Gedare Bloom wrote: > On Mon, Jun 12, 2023 at 2:28 PM Joel Sherrill wrote: > > > > > > > > On Mon, Jun 12, 2023 at 3:10 PM Gedare Bloom wrote: > >> > >> We have a mix of ways to write inline assembly. It would be convenient > >> to choose one way. The prevailing

Re: style question: breaking inline assembly lines

2023-06-12 Thread Gedare Bloom
On Mon, Jun 12, 2023 at 2:28 PM Joel Sherrill wrote: > > > > On Mon, Jun 12, 2023 at 3:10 PM Gedare Bloom wrote: >> >> We have a mix of ways to write inline assembly. It would be convenient >> to choose one way. The prevailing options are based on breaking around >> the colons (reg/field

Re: style question: breaking inline assembly lines

2023-06-12 Thread Joel Sherrill
On Mon, Jun 12, 2023 at 3:10 PM Gedare Bloom wrote: > We have a mix of ways to write inline assembly. It would be convenient > to choose one way. The prevailing options are based on breaking around > the colons (reg/field separators), either to break at colons if the > line length > 80, or to

style question: breaking inline assembly lines

2023-06-12 Thread Gedare Bloom
We have a mix of ways to write inline assembly. It would be convenient to choose one way. The prevailing options are based on breaking around the colons (reg/field separators), either to break at colons if the line length > 80, or to always break at colons. I personally find it is easier to read